SHARE
TWEET

Untitled

tototototo123 Dec 3rd, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // MAJ clientEstSatisfait__c
  2.             Question_questionnaire__c questionSatisfaction = [SELECT Id, commentaire__c, obligatoire__c, ordre__c, page__c, question__c, questionnaire__c, questionParent__c, typeReponse__c
  3.                                     FROM Question_questionnaire__c
  4.                                     WHERE questionnaire__c = :questionnaireId AND page__c = 1 AND ordre__c = 3];
  5.            
  6.             Reponse_questionnaire__c reponseSatisfaction = [SELECT Id, question__c, reponseBoolean__c, reponseDate__c, reponseNumero__c, reponseTexte__c, Resume__c, type__c
  7.                                 FROM Reponse_questionnaire__c
  8.                                 WHERE question__c = :questionSatisfaction.Id AND Resume__c = :nouveauFormulaire.Id];
  9.             if(reponseSatisfaction.reponseNumero__c >= 7) {
  10.                 nouveauFormulaire.clientEstSatisfait__c = true;
  11.             } else {
  12.                 nouveauFormulaire.clientEstSatisfait__c = false;
  13.             }
  14.             update nouveauFormulaire;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top