cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
muralikrishna12
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
Jitendra_jangid
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
Jitendra_jangid
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

muralikrishna12
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (40,315)