Hi here,
Trust you are well.
Creating a Universal Module for Custom App.
Params look like the following
I need to convert a parameter highlighted in yellow to JSON on my Connection tab as my body is JSON.
Please advice.
Appreciate it!
Cheers,
Yuri.
Hi Yuri. Welcome to the Community!
That doesn’t look like a Universal module. As noted in the help, a Universal Module can be used to perform an arbitrary API call to the service’s API.
Typically, you wouldn’t change any of the Mappable Parameters from those that are automatically created when you choose to build a Universal Module.
I’m guessing that you actually need to create an Action module.
PS - If you haven’t already, I’d thoroughly recommend taking the Custom Apps Development Training module from our Partner Training site.
Hi David,
Thanks a lot to feedback.
It’s an arbitrary API call to the service’s API. See below.
I also tried with Action Module → same story.
It’s a more generic question on “How to stanform a mappable parameter for the module that is an array of collection to JSON to be used in body of the connection?”
I try to use
“properties”: { {{toCollection(parameters.eventproperties, ‘key’, ‘value’)}} }
according to the definition of eventproperties I added in original screenshot
and I am getting
“properties”: { [Collection] }
while I should be getting
“properties”: {
“Case ID”: “500J9000008wVLcIAM”,
“Subject”: “Test Subj”,
“Description”: “Test Desc”
}
Please advice.
Kind regards,
Yuri.
Okay, I got it now:) …
I changed type from “raw” to “json”, converted body to JSON and added
“properties”: {
“{{…}}”: “{{toCollection(parameters.eventproperties, ‘key’, ‘value’)}}”
},
Awesome!
1 Like