cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MartinSosa
Level: Power Up

Issues when declearing "_objectid_type" to attach a file

Greetings from Argentina!.

 

Hello to everyone!. I'm having a little bit of troubles to make notes, attachemnts from PowerApps to Dynamics 365. I'm quite newbie in this tech but looking forward to upgrade my skills.

 

So, the problem I'm having is with the "_objectid_type" to attach a file!, here's my code sample:

 

Patch(
Notes,
Defaults(Notes),
{
subject: BrowseGallery1.Selected.Name,
notetext: BrowseGallery1.Selected.Name,
_objectid_value: BrowseGallery1.Selected.Instalaciones,
_objectid_type: "abs_instalacioneses", //<-- HERE'S THE PROBLEM!
filename: "img.jpg",
documentbody: If(
StartsWith(
First(Image).fileBody,
"data&colon;image"
),
Replace(
First(Image).fileBody,
1,
Len(
Left(
First(Image).fileBody,
Find(
",",
First(Image).fileBody
)
)
),
""
),
First(Image).fileBody
)
}

)

 

That's the name of the "EntitySetName" of my custom entity. The issue is this:

"The type of this argument '_objectid_type' does not match the expected type 'Guid'"

 

So..., I've seen that I've to disable an option on "App Settings" -> "Advanced Settings" -> "Use Guid data types instead of string". 

Well, I don't have that option. So..., I've tried this:

_objectid_type: GUID("abs_instalacioneses")

But I've the next issue: "Ambiguous binding is present. Resolve by sending lookup_type property"

 

I'm running out of clues, haha.

Any help would be appreciated!.

Thanks in advanced!.

 

Martin

 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 67 members 4,440 guests
Please welcome our newest community members: