Write collection : Sub-operation of operation | Community
Skip to main content
Milan_Vucetic
Level 9
February 7, 2020
Solved

Write collection : Sub-operation of operation

  • February 7, 2020
  • 1 reply
  • 3182 views

Hi all,

 

below is collection which insert or update some Test table.

 

 

How to achieve for marked field eventDate, when operation is Update, to skip update of this field?

So when operation is Insert all fields are inserted but when operation is Update skip only update of the field eventDate but perform update on other fields?

 

This is easy to achieve when GUI is used but how to do it in the JS code?

 

Regards,

Milan

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jonathon_wodnicki

Hi,

 

In e4x you don't need to call the new XML() constructor on inlined xml (no-op), the xml can be inlined directly with the code.

The @lastModified field is managed by xtk and so can't be updated via xtk.

What you have there is correct otherwise, operation="insertOrUpdate" is upsert in Campaign.

Are you asking about applying the attributes enabledIf and enabledOperation from the workflow update activity?

 

Thanks,

-Jon

1 reply

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
February 10, 2020

Hi,

 

In e4x you don't need to call the new XML() constructor on inlined xml (no-op), the xml can be inlined directly with the code.

The @lastModified field is managed by xtk and so can't be updated via xtk.

What you have there is correct otherwise, operation="insertOrUpdate" is upsert in Campaign.

Are you asking about applying the attributes enabledIf and enabledOperation from the workflow update activity?

 

Thanks,

-Jon

Milan_Vucetic
Level 9
February 10, 2020
Hi @jonathon_wodnicki, I am looking how use enabledOperation from workflow update in this JS code. In case of update, to skip update of one field only. Thanks