GraphQL commands for create application flows on Hopex 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
I need to put in the system 12.000 application flows (I need to set sender application, receiving application and name of the content), but via GraphQL I have some challanges:
I'm able to perform the following GraphQL commands:
mutation {
createContent(content: {
name: "LM_GQL_Test"
}) {
id
}
}
mutation {
createApplicationFlow(
applicationFlow: {
name: "UserOnboardingFlow"
}
) { id }
}
mutation {
createApplicationFlow(applicationFlow: {
name: "TESTLM",
content: {action: ADD, list: [{ id: "C3YvjiExdfVO" }]}
}) {
id
name
}
}
mutation {updateApplicationFlow (
id : "32YvtIFxdrXO",
applicationFlow: {name : "pippo_"}
)
{ id }
}
But adding a sending or receiving application participant it does fail, even using an existing application partner id from a manually created flow:
mutation {
updateApplicationFlow(
id: "K1YvnuFxdbsO",
applicationFlow: {
application_SenderResource_ApplicationParticipant: {action: ADD, list: [{id : "VeuqqGknMTrD" }]}
}) {
id
name
}
}
Error:
{
"errors": [
{
"message": "Error occured on updateApplicationFlow: Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)) See more details in log file"
}
],
"data": {
"updateApplicationFlow": {
"id": "K1YvnuFxdbsO",
"name": "TESTLM"
}
}
Any suggestion ?
