I currently have trouble with something VERY similar if not entirely like this post:
However, if you read one of my recent comments ( I don't think this user is active anymore ), you'll note that I either don't know how to implement this correctly, or I'm fudging the flow/powerapps formula.
I googled and copied:
Set(varDemoFromAttachmentControl, JSON(Image1.Image, JSONFormat.IncludeBinaryData));
Set(varBase64Only, Mid(varDemoFromAttachmentControl, Find(",", varDemoFromAttachmentControl)+1, Len(varDemoFromAttachmentControl) - Find(",", varDemoFromAttachmentControl)-1 ));
Set(varFileLink, 'EasyUpload'.Run(Last(AttachmentControl.Attachments).Name, varBase64Only, DataCardValue7.SelectedDate).sharepointfilelink);
This entire formula was taken by Shane Young on his video: https://www.youtube.com/watch?v=3QaiM8SeWfM&t=0s
Can someone point me in the right direction?
Thank you
Hi @patgat96 ,
You need Create file for a Library (not Create item) - just add the date into the field in there.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
I'm running into a problem in the flow. Whenever I try to make the "create item" option, I cannot choose the document library. I'm not sure if this is because I've already called it once for the "create file" section or if it's because it's a document library and not a list.
Hi @patgat96 ,
To things here - firstly the parameter for your date needs to be
Text(DataCardValue7.SelectedDate,"mm/dd/yyyy")
and then in your Flow, you need to put it back to a Date - example below I just tested and it worked fine.
Also a bit of optimising of your code to avoid leaving Variables "hanging around"
With(
{
wJSON:
With(
{
wJSONI:
JSON(
Image1.Image,
JSONFormat.IncludeBinaryData
)
},
Mid(
wJSONI,
Find(
",",
wJSONI
) + 1,
Len(wJSONI) -
Find(
",",
wJSONI
) - 1
)
)
},
Set(
varFileLink,
'EasyUpload'.Run(
Last(AttachmentControl.Attachments).Name,
wJSON,
Text(DataCardValue7.SelectedDate,"mm/dd/yyyy")
).sharepointfilelink
)
);
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps