@GB ,
Thanks for reaching out to Q&A.
Unfortunately we don’t have support for references in maps at this time. You can try both the approaches that you have mentioned above for now. We have xslt functionality in Standard Logic Apps and in future there are plans to add the support for references, however there is no ETA on this.
I hope this helps!
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.