cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper IV
Helper IV

What is the issue with below formula refering the attachment based on item id

Hi Mates,

 

When I try to refer to the attachment from SharePoint, then it shows the below info(Warning).

In-Shortly: we are using SQL to store MetaData, SharePoint for attachment for the corresponding record, which means referring item id and creating an item in SharePoint, Based on MetaData item Id. Everything is fine. means item attachments are displaying in the gallery.

 

I am able to get record attachments but it throws a warning.

Gallery Items formulaGallery Items formula

waring messageswaring messages

 

The issue is, Is that correct or not, what if this kind of warning message formula won't work in the future?

Kindly assist me.
@rgruian @hpkeong 
@micros

1 ACCEPTED SOLUTION

Accepted Solutions
Resolver II
Resolver II

Hi,

 

I don't think so Filter returns the attachments. In your scenario, Lookup function would be right candidate.

 

Lookup(<Your SharePoint List>, ID=ThisItem.Id)

 

In your formula you are comparing Title with ThisItem.Id. I don't know what you are storing in Title so if that works for you update the Lookup condition accordingly.

View solution in original post

8 REPLIES 8
Resolver II
Resolver II

Hi,

 

I don't think so Filter returns the attachments. In your scenario, Lookup function would be right candidate.

 

Lookup(<Your SharePoint List>, ID=ThisItem.Id)

 

In your formula you are comparing Title with ThisItem.Id. I don't know what you are storing in Title so if that works for you update the Lookup condition accordingly.

View solution in original post

Helper IV
Helper IV

Thank you, the lookup is working fine. but still same issue 

What is the Datatype for Title and ThisItem.Id ?

The title is text datatype from SharePoint 

ThisItem.Id is Int datatype from SQL table

 

If you are sure Title(SharePoint field) will always contain an Integer you can compare like Value(Title)=ThisItem.Id

Yes, that Title needs to update with the Int number only.

Because SQL Table Item Id need to update with Title, so that record will refer the Id to the attachment.

Updated now it shows the warning "Lookup Part May fail on large data Sets"

Try this one With({txtItemId:Text(ThisItem.Id)}, Lookup(<Your SharePoint List>, Title=txtItemId).Attachments)

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (65,103)