The [Sitecore Content Hub documentation][1] provides an example script that does not compile.

When trying to run the script, it encounters several compile errors. For instance:

[![Build error screenshot][2]][2]

```
Error CS0103: The name 'entities' does not exist in the current context (Line 7, Columns 31 and 52)
Error CS0029: Cannot implicitly convert type 'long' to 'bool' (Line 16, Column 5)
Error CS1026: ) expected (Line 16, Column 34)
Error CS1002: ; expected (Line 16, Column 35 and Line 37, Column 41)
Error CS7017: Member definition, statement, or end-of-file expected (Line 16, Column 35)
Error CS8917: The delegate type could not be inferred. (Line 37, Column 18)
Error CS1955: Non-invocable member 'IChildToManyParentsRelation' cannot be used like a method. (Line 37, Column 41)
```

Has anyone else encountered this issue or knows how to resolve it?


  [1]: https://doc.sitecore.com/ch/en/developers/cloud-dev/create-public-links-for-approved-assets-automatically.html#create-a-script
  [2]: https://i.sstatic.net/I7KqKBWk.png