I have checked and logged the values of datatable, its coming as true/false. so even if i write this datatable to excel, values that I see in datatable will only get printed.
Due to O365 limitation - it can’t fetch attachment URLs from sharepoint list items, so we ended up trying below solutions:
Fetch attachments details from sharepoint list via http request as suggested by @arivu96. This step should work but didn’t work in our case due to access issues, seems like app id and secret had some restrictions which we have not been able to resolve yet.
So, we created a power automate flow to fetch attachment details. Call that PA flow using http request from UiPath and collect the response. This worked like a charm!
Hope this helps someone struggling with this issue.