mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Added type definitions for Sdk.Soap.js
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
/// <reference path="sdk.soap.d.ts"/>
|
||||
|
||||
var query = new Sdk.Query.QueryByAttribute( "account" );
|
||||
query.addColumn( "accountnumber" );
|
||||
query.addAttributeValue( new Sdk.String( "name", "acme" ) );
|
||||
Sdk.Q.retrieveMultiple( query ).then( entityCollection =>
|
||||
{
|
||||
var first = entityCollection.getEntities().getByIndex( 0 );
|
||||
var accountNumber = first.getAttributes().getAttributeByName( "accountnumber" );
|
||||
console.log( "Account 'acme' has the Account Number '" + accountNumber + "'" );
|
||||
} );
|
||||
Vendored
+2203
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user