Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Syntax

...

The use of this routine requires the SIL Tempo Connector add-on (free) be installed.

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

tempoGetAccount(account)

Package

tempo

Alias

Pkg Usage

getAccount(account)

Description

Excerpt
hiddentrue
Returns the account with the specified id, key, or name.

Returns the account with the specified id, key, or name.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

account

...

String

Yes

Account id, its key or its name.

Return

...

Type

TempoAccount

Example

Code Block
languagejs
TempoAccount ta = tempoGetAccount("1234-5678-9101");

runnerLog("ID: " + ta.id);
runnerLog("Key: " + ta.key);
runnerLog("Name: " + ta.name);	
runnerLog("Lead: " + ta.lead);
runnerLog("Contact: " + ta.contact);
runnerLog("Status: " + ta.status);
runnerLog("Customer ID: " + ta.customer_id);
runnerLog("Customer Key: " + ta.customer_key);
runnerLog("Customer Name: " + ta.customer_name);	
runnerLog("Category ID: " + ta.category_id);
runnerLog("Category Key: " + ta.category_key);
runnerLog("Category Name: " + ta.category_name);
runnerLog("Monthly Budget:" + ta.monthly_budget);
runnerLog("Global: " + ta.global);
runnerLog("Billable: " + ta.billable);

...

Code Block
languagejs
ID: 1234

...


Key: 1234-5678-9101

...


Name: [Tempo] Example Account

...


Lead: jSmith

...


Contact: JDoe

...


Status: OPEN

...


Customer ID: 405

...


Customer Key: TMP

...


Customer Name: Example

...


Category ID: 6

...


Category Key: 005

...


Category Name: Client Billable - Fixed

...


Monthly Budget: 0

...


Global: false

...


Billable: false

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "tempo-accounts"_routine" and space = currentSpace ( )
labelsarray_routines