Skip to end of banner
Go to start of banner

tempoGetAccount

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Syntax

tempoGetAccount(account)

Description

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

Parameters

Parameter name

Type

Required

Description

accountstringYesAccount id, its key or its name.

Return type

TempoAccount

Example

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);

Returns:

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

There are no items with the selected labels at this time.

  • No labels