Quantcast
Viewing all articles
Browse latest Browse all 79901

Fill in Url Field on entity form using odata filtering

Hi all,

I am currently experiencing a problem with Odata query. 

I have two custom entities:

1. Custom Configuration entity where are stored Names and Values which another entities can  use. Currently in Name I store the name of URL link and in the Value URL itself.

2.  A Custom entity with custom string filed of type URL.

What I am trying to is to write a function on a custom entity which will via Odata get a configuration entity, filters the name I need and insert's it's Value into this URL field.

But I am getting an error invalid formatType:

Body of the function:

var query = "?$select=csp_Value&$filter=csp_name eq 'puma.link.test'";

XrmServiceToolkit.Rest.RetrieveMultiple("csp_configurationSet", query,

function (results) {

var firstResult = results[0];

if (firstResult !== null) {

xrm.Page.getAttribute('csp_puma').setValue(firstResult);

}

},

function (error) {

Xrm.Utility.alertDialog(error.message);

},

function () {

},

false

);

};

If someone has any hint or suggestions what I am doing wrong please help :)

 

Thank you,

Julia


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>