Skip to main content
Nintex Community Menu Bar
Question

What is the merge syntax for all ids in a model?

  • July 9, 2024
  • 1 reply
  • 3 views

Forum|alt.badge.img+11

I’m trying to use the Run Custom Apex Action in the action framework, and my InvocableMethod, like all InvocableMethods, starts with a list of Ids. Is there a way to use Merge Syntax to return all the Ids for all objects in a given model?

1 reply

Forum|alt.badge.img+6
  • Nintex Employee
  • July 9, 2024

Fair warning that I haven’t tested this with an Invocable Method, but I think this might work or at least get you close. If your model’s name was Opportunities, for instance…

{{#$Model.Opportunities.data}}{{Id}},{{/$Model.Opportunities.data}}

You’ll get a trailing comma this way for sure, and since this is a Global Context merge, the last/first functions aren’t available, unfortunately. Does that help?