Hi Mohamed, thank you for your reply. I was able to figure out the search step, but I was wondering if you had an answer regarding my custom fields RPC.
I have the rpc call to add the custom fields as dynamic mappable params as shown:
[
{
"name": "id",
"type": "text",
"label": "Client ID",
"required": true
},
{
"name": "familyName",
"type": "text",
"label": "Family Name",
"required": true
},
{
"name": "givenName",
"type": "text",
"label": "Given Name",
"required": true
},
{
"name": "companyId",
"type": "text",
"label": "Company ID",
"required": false
},
"rpc://getCustomFields"
]
And it looks ok in the module:
First question is: when typing in one of the inputs made available by the RPC, it fills all inputs with the same value- how to avoid this?
Second question is: How to add the input values from the generated dynamic fields in the module to the PUT request?
Here is my interface:
[
{
"name": "id",
"type": "text",
"label": "ID"
},
{
"name": "object",
"type": "text",
"label": "Object"
},
{
"name": "created",
"type": "text",
"label": "Created"
},
{
"name": "givenName",
"type": "text",
"label": "Given Name"
},
{
"name": "familyName",
"type": "text",
"label": "Family Name"
},
{
"name": "email",
"type": "text",
"label": "Email"
},
{
"name": "companyId",
"type": "text",
"label": "Company ID"
},
{
"name": "status",
"type": "text",
"label": "Status"
},
{
"name": "inviteUrl",
"type": "text",
"label": "Invite Url"
},
{
"name": "customFields",
"type": "collection",
"spec": [
{}
],
"label": "Custom Fields"
}
]
Here is my communication for now:
{
"url": "/client",
"method": "PUT",
"qs": {},
"body": {
"id": "{{parameters.id}}",
"givenName": "{{parameters.givenName}}",
"familyName": "{{lower(parameters.familyName)}}",
"companyId": "{{parameters.companyId}}"
},
"headers": {},
"response": {
"output": "{{body}}"
}
}
If you or anyone else can point me in the right direction, I’ll be ever so grateful! Thank you