Hello,
I’m trying to follow the GS API documentation on updating timeline activities.
I want to move activities from one account to another. We normally send requests to GS to do it for us. It was suggested somewhere in the community that APIs can handle these updates.
Here is my payload and response. The issue is that the activity does not get moved and no error code is provided.
Put command and url: https://ourcompany.gainsightcloud.com/v1/ant/es/activity?identifier=gsid
Few questions along the way:
- I tested a zillion times by adding and removing the required fields Subject, Notes, and TypeName, but I do not need to make changes to any of these fields. Are they still mandatory as the documentation says?
- The gsid below is the activity gsid; the company gsid is where I want to move the activity, and the company name is there because it was there in the examples, but I’m not sure it is required. Is this a required field for the look-up to work?
- I would like some documentation on how to read the look-up examples in the documentation. Is this lookup trying to find the account name by the gsid provided in the payload?
Response: "jobId": "97f0de1c-6fe4-4bb2-9961-c0f3cb6235cb"
"jobId": "97f0de1c-6fe4-4bb2-9961-c0f3cb6235cb",
"status": "COMPLETED",
"failedCount": 0,
"successCount": 1,
Payload:
{
"records": a
{
"Gsid": "1I004SG7RDV06L1HFJWG723ZE50C7FDUYQL1",
"GsCompanyId": "1P0264H09NPSK5KS7T8D12TO0ZBJZ7PUKHSZ",
"companyName": "Gainsight Playbook Account"
}
],
"lookups": {
"GsCompanyId": {
"fields": {
"companyName": "Name"
},
"lookupField": "Gsid",
"objectName": "Company",
"multiMatchOption": "FIRSTMATCH",
"onNoMatch": "ERROR"
}
}
}
Thank you,
Jasmina