Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
10 views4 pages

24 12 24 DVXG Address Spec

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views4 pages

24 12 24 DVXG Address Spec

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Rajesh,

You add a button in track actions : Export Training, only available for user :
[email protected]

When click on this button, for each checked row, you :

1. Store the values of theses rows which are in maileva_response.to : name, address_line1,
address_line2, address_city, address_postalcode, address_country
2. Based on Id,

you make this api call :

3. In the response, you have


4.

You store in :
name : lines [0] : Monsieur et Mdame Catherine et Thierry GEOFFROY
address_line1 : lines[1] : 2 rue du Marquis de Morès
address_line2 : lines[2] if any
address_city : line6 : 92380 GARCHES, FRANCE
address_postalcode : “”
address_country : country : FRANCE
with theses values, you build a string on this model :

{
"messages": [
{
"role": "user",
"content": {
"name": "value of lines[0] in the return of cartone api call",
"address_line1": "value of lines[1] in return of cartone api call",
"address_line2": "value of lines[2] in return of cartone api call if any, otherwise
empty",
"address_city": "value of line6 in return of cartone api call",
"address_postalcode": "leave empty",
"address_country": "value of country in return of cartone api call"
}
},
{
"role": "assistant",
"content": {
"name": "value of name in the return of generatedetails api call",
"address_line1": "value of address_line1 in the return of generatedetails api
call",
"address_line2": "value of address_line2 if any in the return of generatedetails
api call, otherwise empty",
"address_city": "value of address_city in the return of generatedetails api call",
"address_postalcode": "value of address_postalcode in the return of
generatedetails api call",
"address_country": "value of address_country in the return of generatedetails
api call"
}
}
]
}

You might also like