HomeRecipesAPI ReferenceChangelogDiscussions
Log In
Discussions

Discussions

Ask a Question
Back to All

Update multiple workorders

Hi,

I am using the below code to updated GLs for multiple workorders. It works for one but when I add the second Id, if fails. If it can be done, could someone help me with the code.

update_payload = [
{
'Properties': ['Id', 'GlAccount'],
'Entity': {
'GlAccount': '511200.701',
'Id': 7698
}
},
{
'Properties': ['Id', 'GlAccount'],
'Entity': {
'GlAccount': '511200.601',
'Id': 7699
}
}
]

Thanks