When a new item is created or when item is already created and get attachments given an Id, I cant check if an item has attachments
I tried when new item is created using this expresion: @equals(triggerBody()?['Attachments'], true)
In other hand, when item is already created and following get attachments body, given an id, cant create a condition if object is empty with @not(equals(empty(body('Obtener_datos_adjuntos')), true))
Solved! Go to Solution.
Hi @asturnebur,
The When a new item is created trigger didn't contain any information about the Attachments, so it can't be used to check whether attachment is empty.
Further, to check if the Attachments is empty, we could just use:
@empty(body('Obtener_datos_adjuntos'))
If the result is yes (true), means there is no attachment.
Regards,
Michael
Hi @asturnebur,
The When a new item is created trigger didn't contain any information about the Attachments, so it can't be used to check whether attachment is empty.
Further, to check if the Attachments is empty, we could just use:
@empty(body('Obtener_datos_adjuntos'))
If the result is yes (true), means there is no attachment.
Regards,
Michael
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
17 | |
14 | |
7 | |
6 | |
5 |
User | Count |
---|---|
24 | |
18 | |
10 | |
8 | |
7 |