Hi All,
I have a record type process variable - MAC User (list), This record type contains the list of users and their information like name, email, last name etc.
I'm trying to create the users within appian with the Create User Smart Service, but since its a list is not allowing and its throwing an error, do I have to do a loop for this? I was thinking the smart service could create more than one user at the time. If looping is the only option - can someone recommend what would the best way?
thanks in advance
Discussion posts and replies are publicly visible
Yes, you have to take it through a loop.
There are two ways to do that,
1. You can configure MNI in the Create User Smart Service node so that it executes for the users in MAC User (list)
2. You can create a loop in process model using XOR and Script task to assign start index and iterating it through each items in MAC User (list)
If you anticipate the total users to be less than 1000 you can go with MNI else create a manual loop in process
let me ask when entering the name, email etc in the smart sevice I can still user the MAC User List. name relationship, or I have to index that also?
Maria said:I can still user the MAC User List. name relationship
Can you clarify what you mean by this? I'm really unclear what we're supposed to make of the phrase "MAC User list name relationship". Is that something standard?
yes, just what I was originally using the recordtype!MACUserList.Name or do I need to index this also in the smart service since its a list even if I plan to use the MNI?
If I understand your question correctly - yes at least for the sake of being understandable, I would suggest indexing using tp!instanceIndex for every field you're trying to populate from the current record item.