Hi experts,
On Cloud Applications Studio, I would like to check if there's any attachment added on the specific node. For that purpose I think need to use AttachmentExistsIndicator property
if(this.AttachmentFolder.AttachmentExistsIndicator)
{
// logic goes here
}
The problem is; if attachment tab containst any document it works fine. But if there no document exist on attachments tab, this.AttachmentFolder.AttachmentExistsIndicator throws error. Is this system bug or expected behaviour?
Request clarification before answering.
Hi fceylan_hs,
You need to check first if the AttachmentExistsIndicator field is empty or not. For that, you can be using IsInitial() function.
Then, for you case, if it is not empty, the IF logic will be executed.
So you can try:
if(!this.AttachmentFolder.AttachmentExistsIndicator.IsInitial())
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.