I tried using your function but need some help. I have attached the workflows.
In both of the workflows, there is a field either called Share Size (GB) or Default Qtree Disk Quota (GB). In this field I just need the user to enter the value as a plain number on how much gig they want.
As of Now if I specify "1" in the fields, the quotas file shows as 1048576
I need it in this way though. If I enter 1, the quotas file to show as 1g . Can you help ?
Have you tried doing a string add instead, and passing the quota size parameter as input_size + 'g'?
I couldn't see which quota set command you were using from the attachments, but the default 7mode command assume integers so you can't pass strings. The powershell commands take strings so you could clone the existing command, and adjust the type from [int] to [string] and pass '1g' in and see if that works.
What's the reasoning for the formatting needing to be '1g' rather than a kilobyte value anyway? Could you just convert back in the WFA UI instead? Or does the quota file contents matter? I ask because you will loose any reservations cloning the in-built commands so will have a time-lag between set's and get's (one collection cycle of DFM+WFA).