Skip to main content
12-Amethyst
March 27, 2023
Solved

User permissions for timers

  • March 27, 2023
  • 1 reply
  • 980 views

I have a service which is working.

Have a timer, which starts this service once per year.

When in "Run as user" I use user from different project - it works perfecly.

When I create new user, adjust permissions - I receive this error:
Message ::TypeError: Cannot call method "PostMultipart" of null

 

I try to log table variable- have data inside, at both users

I try to log url - is correct, at both users.

 

Line where I have error:

 

var params = {
partsToSend: table /* INFOTABLE */,
url: url /* STRING */
};

var newVar = Resources["ContentLoaderFunctions"].PostMultipart(params);

Best answer by nmutter

"Cannot call method "PostMultipart" of null" means that Resources["ContentLoaderFunctions"] evaluates to "null" for the user.

 

So your own user does not have visibility permissions for entity ContentLoaderFunctions.

1 reply

nmutter16-PearlAnswer
16-Pearl
March 27, 2023

"Cannot call method "PostMultipart" of null" means that Resources["ContentLoaderFunctions"] evaluates to "null" for the user.

 

So your own user does not have visibility permissions for entity ContentLoaderFunctions.

ZbigniewK12-AmethystAuthor
12-Amethyst
March 27, 2023

Surprising, I just thought it's more like system, and would not even guess there is such entity 😉
Found it, set it - and it's working, thanks.