Hi Muhammad,
SQL table structure should be with table name COUNTER
Tag Name | Email ID | Counter |
Tag001 | xxx@email.com | 1 |
And Transaction should be
1st Sequence: Tag query for fetching from Pco
2nd Sequence: SQL query, which needs to fetch existing data from COUNTER table by passing above tag query details
3rd Sequence: keep condition action block, if above query scucces or rowcount more than 1, it should go through left path (i.e. Email action block). If not it skip (i.e. Right side path)
4th : Down to Email action block, add SQL insert Query action block which it needs to insert new records in COUNTER table with details (i.e. Tagname, EmailID & counter).
Hope it will solve your requirement
Regards,
Praveen Reddy