@Nirali Shah Thanks for reaching out. In case inline script would not be possible to run in your logic app as per your requirement, then unfortunately there are no actions/inbuild function expression that could help you with your use case. You might need to add multiple expressions/actions to achieve your requirement, but it is not suggested and sometimes it may not be feasible.
The recommendation is to leverage the inline expression but in case if it is not feasible then the workaround would be calling the function app to offload this functionality if inline expression is the option for you.
In case you are facing any issue with the inline code then please let me know so I can assist you further.