Forum Discussion

Max's avatar
Max
New Contributor II
2 years ago
Solved

Filter attributes out of object

Hello, I need to filter a payload based on user entered parameters. The user can use the fieldsNames parameter to provide a list of fields they want returned, instead of all 30 attributes in the pay...
  • koryknick's avatar
    2 years ago

    Max - with the solution provided, you can get the desired output you show above.

    Only gsn:

    Then without gsn:

     

    By the way, if you are calling this from a triggered task to specify the fields you want, make sure you clear any default values from your task definition.

    Hope this helps!