Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
Replies
18 replies
Answers
1 answer
Subscribers
11 subscribers
Views
13014 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Does anyone know how to use the Appian Smart Service Delete from Data Store Enti
markw91
over 9 years ago
Does anyone know how to use the Appian Smart Service Delete from Data Store Entity? Any example of property arguments given on Data-Input tab, Data to Delete value would be a big help. Documentation is very poor on this. How is a particular row identified for deletion in the data set? Value appears the only place this can be possibly specified, but syntax is not known to me....
OriginalPostID-164838
OriginalPostID-164838
Discussion posts and replies are publicly visible
0
sainadhn
over 9 years ago
Hi mark,please find the syntax below:
={entity:cons!MMS_APP_ENTITY_MEETING_DETAILS,identifiers:{4,2,3}}.
here identifiers refers to the primary keys of the table that identifies a record uniquely.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
markw91
over 9 years ago
What does the constant represent, table name or a CDT? Is 'identifiers' the field? Are 4,2,3 the rows? Clarification is definitely needed. What would an example for the related Write to Data Store Entity look like?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
davidg707
over 9 years ago
The constant points to the data store entity. Identifiers is not the field, it's a key word. {4,2,3} are the primary key values for the rows you want to delete. The Write to Data Store Entity would write to the same data store, probably with the same constant as above.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
markw91
over 9 years ago
I'm using a process variable instead of a constant for the Data Store Entity, any issue with that? For identifier 'key word', I'm using the first item name, which called ID, in a CDT that represents what what stored in the Data Store Entity. eg. My Appian Smart Service Write to Data Store Entity Value =pv!Xform, Save into dseFormX. So Data to Delete value is ={entity:pv!dseFormHSSD,ID:{4}} to delete the row whose ID=4?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
markw91
over 9 years ago
Oops, I meant Data to Delete value is ={entity:pv!dseFormX,ID:{4}} ...please correct if wrong
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
davidg707
over 9 years ago
Regardless of the primary key field in your table, I believe you are supposed to write "identifiers: {4}".
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
davidg707
over 9 years ago
** "regardless of the name of the primary key field"
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
markw91
over 9 years ago
Ok. So, your example deletes three records, rows whose identifiers matches the values in the set {4,2,3} ? No secondary key fields allowed?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sainadhn
over 9 years ago
Hi mike,Only primary keys need to be provided, else it will throw an error saying there is no primary key defined. If you provide a column name as label instead of identifiers as you specified in your example (say ID) it may not throw error but there will be no deletions.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
markw91
over 9 years ago
So... I have one primary key, if we say {4,2,3} does that delete three records?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>