Expand my Community achievements bar.

SOLVED

how to access variables from audit logs

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Level 3

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.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 3

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.

Avatar

Level 10

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