Action call not working on OSDK, but is working in Workshop

I’m trying to build an OSDK app that is running into errors when trying to run an action.

The same action works when running in a workshop app - which points towards there being an issue with the parameters being passed to the function when calling the action in OSDK.

When I inspected the networking tab for the action being submitted in workshop it seemed like the parameters were wrapped up in a way that was dissimilar to how the request is made in the “apply” step of an action in OSDK. So it doesn’t seem I can recreate that entirely locally.

The error message I’m seeing includes some of the following information:

  "errorCode": "INVALID_ARGUMENT",
  "errorName": "FunctionExecutionFailed",
  "message": "RemoteError: NOT_FOUND ObjectSet:NoRelationFoundForId....

Hi all,

The issue here was caused by a permission issue on links, not the actual parameters being passed.

The action in use was backed by a function which, in its execution, used links between objects. In the Dev Console app, I had not included the links in the resources.

Once all of the links that were being used by the function, action and OSDK app were included it worked.

Thanks,
Seamus

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.