how to access variables from audit logs

Avatar

Avatar

ketangp28686788

Avatar

ketangp28686788

ketangp28686788

04-08-2017

Hi,

I want to access Insert/update variables of Audit logs so as to maintain how many records got inserted or updated of particular schema which is part of import workflow.

Regards,

Ketan Pardeshi

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

_nkur

Avatar

_nkur

_nkur

04-08-2017

Hi,

insert and update count are maintained in event variable you can get them using below variable on next activity after update data activity.

vars.insertCount & vars.updateCount

Regards,

Ankur A.

Answers (1)

Answers (1)

Avatar

Avatar

Amit_Kumar

MVP

Avatar

Amit_Kumar

MVP

Amit_Kumar
MVP

04-08-2017

Hi Ketan,

It's a two step process

Step 1: Enable success and reject from update data activity(this will work for CRM export activity as well)

Use the following screen for the reference.

1272115_pastedImage_1.png

Step2:  Use vars.recCount or vars.insertCount & vars.updateCount to get the count of records, you can use this variable to do what ever you want to use it for.

Example logInfo("successfully inserterd or updated records: "+vars.recCount);

1272131_pastedImage_2.png

Hope this helps!

Amit