How do you use XrmServiceToolkit.Soap.RetrieveAllEntitiesMetadata?

Mar 6, 2016 at 8:16 PM
I have this code block that retrieves a list of entities:

var entitiesMetadata = XrmServiceToolkit.Soap.RetrieveAllEntitiesMetadata(["Entity"], true);
    var currentEntityName = new Array();
    select = document.getElementById('entities');

    for (var i = 0; i <= entitiesMetadata.length; i++) {

        var entity = entitiesMetadata[i];
        if (entity !== null) {
            currentEntityName[i] = entity.LogicalName;
        }
    }
How do I get all the attributes for Contact? Does anyone know this? Anyone have any sample code? I really need an example as the documentation is just not there.
Coordinator
Mar 11, 2016 at 4:03 PM
Hi There.

Please have a look and download the full source code which has .htm page including all examples

Kind Regards,
Jaimie
Mar 14, 2016 at 5:39 PM
Hi, this no longer works:

var entitiesMetadata = XrmServiceToolkit.Soap.RetrieveEntityMetadata(["Attributes"], "contact", true);