Answers.Body: <p>What you could do is use the getEntityData? That should give you all data that is avaiable for the entity in the triggerData. The contactId is special as we tend to want to do things with contacts :-)
  Does that help?
  So an example:</p>
  
  <pre><code>$contributionRecur = $triggerData-&gt;getEntityData('ContributionRecur');
  </code></pre>
  
  <p>which in your case is likely to become</p>
  
  <pre><code>$eventData = $triggerData-&gt;getEntityData('Event');
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-29T08:00:11.687Z
Answers.Text: Thank you very much for the reply. Where do get the API documentation to know what are the calls to use for the classes.
Answers.UserDisplayName: Jeff Salleh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-29T09:06:53.793Z
Answers.Text: The documentation there is can be found on the CiviCRM documentation (which is temporarily unavailable so I can not provide you the link :-). There is no documentation of each call. As this is a community extension though, you are quite welcome to create it *grin*
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-29T12:24:33.277Z
Answers.Text: I have the link...https://wiki.civicrm.org/confluence/display/CRMDOC/CiviRules+-+how+to+make+your+own
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-27T15:09:53.960Z
Answers.LastActivityDate: 2016-09-27T15:09:53.960Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>I only manage to get the value of contactID from my processAction using the variable of class CRM_Civirules_TriggerData_TriggerData using getContactId().</p>
  
  <p>I would like to know if I am able to get ParticipantId or EventId since the rule is triggered when participant status is changed ?</p>
  
  <p>thanks,
  j.</p>
  
Tags: <civirules>
Title: What is the API for class CRM_Civirules_TriggerData_TriggerData?
ThreadText: # What is the API for class CRM_Civirules_TriggerData_TriggerData?
  
  (Asked by: username_0 on 2016-09-27)
  
  I only manage to get the value of contactID from my processAction using the variable of class CRM\_Civirules\_TriggerData\_TriggerData using getContactId().
  
  I would like to know if I am able to get ParticipantId or EventId since the rule is triggered when participant status is changed ?
  
  thanks,
  j.
  
  **Tags:** civirules
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-09-27. Score: 1
  
  What you could do is use the getEntityData? That should give you all data that is avaiable for the entity in the triggerData. The contactId is special as we tend to want to do things with contacts :-)
  Does that help?
  So an example:
  $contributionRecur = $triggerData->getEntityData('ContributionRecur');
  
  which in your case is likely to become
  $eventData = $triggerData->getEntityData('Event');
  
  > **Comments:**
  > **username_0**: Thank you very much for the reply. Where do get the API documentation to know what are the calls to use for the classes.  
  > **username_1**: The documentation there is can be found on the CiviCRM documentation (which is temporarily unavailable so I can not provide you the link :-). There is no documentation of each call. As this is a community extension though, you are quite welcome to create it *grin*  
  > **username_1**: I have the link...https://wiki.civicrm.org/confluence/display/CRMDOC/CiviRules+-+how+to+make+your+own  
  
  ---
  
  