Giter Club home page Giter Club logo

xrmtstoolkit's People

Contributors

stevenrasmussen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xrmtstoolkit's Issues

Properties are not Supported For Custom Actions

I created a custom VerifyAddress Action with a property, but it's not working.

export class VerifyAddressResponse extends XrmTSToolkit.Soap.ExecuteResponse {

    /**
     * Action Response Stringified JSON
     */
    Response: string;

    private _responseObj: VerifyAddressResponse;
    get responseObj(): VerifyAddressResponse {
        if (!this._responseObj) {
            this._responseObj = JSON.parse(this.Response);
        }
        return this._responseObj;
    }
}

The property is undefined. Looks like the XrmTSToolkit just casts the Response to be the given type, but doesn't actually create one of that custom type. What's the best way to get this to work?

Add Support for Synchronous Calls

I'm attempting calling a Soap Call from a call back from an Alert.Js Callback method. Unfortunately, I need to be able to perform a synchronous call, rather than an async call. Can we add an optional parameter to the Calls to be sync (they can be async by default, unless specified)?

Use of our registered company name

Simpler Software is our registered company name. Can we kindly ask you to please change the name you are using so that we can move forward with using our company name as a organization on GitHub?

QualifyLeadRequest's EntityReferenceCollection not working correctly

I implemented a Qualify Lead Request. It's response type includes an EntityReferenceCollection. When parsing the result, the Last Entity Reference in the Collection is the only thing that gets returned.

These are some of the changes I had to implement to get it to work.

Added a EntityReferenceCollection Type:

type EntityReferenceCollection = Array<Soap.EntityReference>;

Added an EntityReferenceCollection Case in GetObjectFromBaseXRMObject:

case "EntityReferenceCollection":
    CurrentObject = new Array<Soap.EntityReference>();
    break;

Added the Request and Response classes:

export class QualifyLeadRequest extends ExecuteRequest {

    constructor(
        CreateAccount: boolean,
        CreateContact: boolean,
        CreateOpportunity: boolean,
        LeadId: EntityReference,
        SourceCampaignId?: EntityReference,
        OpportunityCurrencyId?: EntityReference,
        OpportunityCustomerId?: EntityReference
    ) {
        super("QualifyLead");
        this.Parameters["CreateAccount"] = new BooleanValue(CreateAccount);
        this.Parameters["CreateContact"] = new BooleanValue(CreateContact);
        this.Parameters["CreateOpportunity"] = new BooleanValue(CreateOpportunity);
        this.Parameters["LeadId"] = LeadId;
        if (OpportunityCurrencyId) {
            this.Parameters["OpportunityCurrencyId"] = OpportunityCurrencyId;
        }
        if (OpportunityCustomerId) {
            this.Parameters["OpportunityCustomerId"] = OpportunityCustomerId;
        }
        if (SourceCampaignId) {
            this.Parameters["SourceCampaignId"] = SourceCampaignId;
        }
        this.Parameters["Status"] = new OptionSetValue(3); // Qualified
    }
}
export class QualifyLeadResponse extends ExecuteResponse {
    CreatedEntities: EntityReferenceCollection;
}

I've done a lot of formatting changes as well, but you probably won't care about them, and they don't apply to this issue. I just had to organize the code a little to understand why I what was happening. If you'd like a pull request, I'd love to give it to you and abandon my branch, but again, don't think that makes since.

Soap Module Listed twice?

Any reason the Soap Module is listed twice:

image

Ever thought of using Gitter? This type of post is really more of a discussion, and doesn't really belong as an "issue" IMHO. It's been very helpful for the XrmToolBox

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.