kryo91
March 29, 2024, 7:38am
1
Hello, How add informations in API
CURL Command
curl --user “APITest\API.User” --header “Content-Type: application/json” --request POST --data ‘{“name”:“Contact Name Import”,“fields”:{“FirstName”:"{{Contact.Field(C_FirstName)}}"},“identifierFieldName”:“FirstName”}’ https://secure.p03.eloqua.com/api/bulk/2.0/contacts/imports
result :
Thanks for help
sid
March 29, 2024, 7:56am
2
Hi.
Create a variable using “set value” step and set its contents to JSON format as needed for “fields” param.
Eg:
{“FirstName”:"{{Contact.Field(C_FirstName)}}"}
Then, add another field in the API action grid with key “fields” and value as binding of the variable created above.
kryo91
March 29, 2024, 9:28am
3
Thanks sid,
fields is the variable name and variable value, is that right?
I have a problem when adding, the variable empties when I click on another location
Apple
March 29, 2024, 9:29am
4
Instead of Set Value I suggest using the Group step, and then inside you put Set Value for each field you want
sid
March 29, 2024, 9:31am
5
Variable name can be anything. Key in API should be fields.
Check the value you are pasting… if its not a valid JSON, Wappler empties it.
The quotes are incorrect from what I can see.
Alternatively, you can use Group Step as Apple has suggested.
kryo91
March 29, 2024, 11:52pm
6
Thanks but how use Group ?
Apple
March 30, 2024, 12:02am
7
If you search the forum you find this topic:
Hi,
I could not find info about this step.
[image]
Does anyone know when and how to use it? Same for the “parallel” step to its left.
I imagine that when these steps were added, they were mentioned in the announcement, but looking through previous announcements is not (should not be) the way to find out how to use a feature. Searching for a word as common as “Group” leads to a lot of irrelevant hits. This is very frustrating, because now I have to bother this forum for help, for somethi…
kryo91
April 1, 2024, 12:39am
9
Hi Apple
How to go from what I just did, on the left, to the desired result on the right
My Appconnect
Thanks
Apple
April 1, 2024, 1:34am
10
Hi kryo,
fieldValues need to be a List instead of Group, can you try? And then you need to add the elements (Groups) to the List
kryo91
April 5, 2024, 8:17am
11
Thanks Apple, so it didn’t work, so I directly entered the Json code, integrating my variables, thanks again everyone