Company
The getter current_company is here to give access to all informations about the current_company.
How to use it
local company = current_company.details
details
Return MobileCompany
local company = current_company.details
uuid
Return String
local uuid = current_company.uuid
status
Return String
local status_name = current_company.status
additional_columns
Return List<CompanyAdditionalColumn>
local status_name = current_company.additional_columns
calculated_fields
Return List<CompanyCalculatedValue>
local status_name = current_company.calculated_fields
campaigns
There is 3 getters here returning the same structs
- all_campaigns: Every campaigns linked to the company
- campaigns: All active campaigns linked to the company
- running_campaigns: Every running campaigns (at least a period is running now) linked to the company
Return List<ParsedCampaignListElement>
local campaigns = current_company.campaigns
local all_campaigns = current_company.all_campaigns
local running_campaigns = current_company.running_campaigns