Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
3 replies
Subscribers
7 subscribers
Views
2490 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
Write to data store entity: Is there a way to get number of rows successfully wr
maheshp460
Certified Associate Developer
over 9 years ago
Write to data store entity: Is there a way to get number of rows successfully written to DB after this call other than running another query?
OriginalPostID-194328
OriginalPostID-194328
Discussion posts and replies are publicly visible
Parents
0
sikhivahans
over 9 years ago
@maheshp To the best of my knowledge, each and every record (new or existing) you input to this smart service will be updated in the database. If there is any problem even with a single record, the smart service ends in failure without making any updates.
If your intention is to only identify the newly inserted records without making a query, then a difference in the primary key attribute between the PV (you input to the smart service for writing into DB) and the 'Stored Values' (output of 'Write to Data Store Entity' smart service) should give you the newly inserted records.
If your intention is to identify the updated (newly inserted or modified) records, then 'Stored Values' (output of 'Write to Data Store Entity' smart service) is the one which will help you in identifying so.
Let's see if any other practitioner can provide their valuable inputs.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sikhivahans
over 9 years ago
@maheshp To the best of my knowledge, each and every record (new or existing) you input to this smart service will be updated in the database. If there is any problem even with a single record, the smart service ends in failure without making any updates.
If your intention is to only identify the newly inserted records without making a query, then a difference in the primary key attribute between the PV (you input to the smart service for writing into DB) and the 'Stored Values' (output of 'Write to Data Store Entity' smart service) should give you the newly inserted records.
If your intention is to identify the updated (newly inserted or modified) records, then 'Stored Values' (output of 'Write to Data Store Entity' smart service) is the one which will help you in identifying so.
Let's see if any other practitioner can provide their valuable inputs.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data