Forum
Community Login
Infusionsoft Community
Welcome, Guest
Please Login or Register.    Lost Password?
Lookup Affiliate Referral with API - Code Help Ple (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Lookup Affiliate Referral with API - Code Help Ple
#8227
marcpsummers (User)
CMAC
Posts: 124
graphgraph
User Offline Click here to see the profile of this user
Lookup Affiliate Referral with API - Code Help Ple 4 Weeks ago Karma: 7  
I am trying to get the affiliate id from the Referral table (which I have managed) - but now I need to ensure it is the latest affiliate and not already expired.

this is what I am doing...

Code: :

      $app = new iSDK;     $app->cfgCon("InfusionSoftApp"); $cid=(int)$cid ; $returnF = array('AffiliateId'); $query = array('ContactId' => $cid); $referral $app->dsQuery("Referral",1,0,$query,$returnF); $refid=$referral[0]['AffiliateId']; echo $refid;



So i need to add a where 'DateExpires' is not older than 30 days and the latest one if multiples are in the array.

Anyone able to help with how I correct my $query?
 
Report to moderator   Logged Logged  
 
Marc P Summers
InfusionSoft Certified marketing Automation Coach
Monkey Design House
Automated MarketingInfusionSoft UK ConsultancySEO Trainer
  The administrator has disabled public write access.
      Topics Author Date
    emo
Lookup Affiliate Referral with API - Code Help Ple
marcpsummers 2009/10/23 04:35
    thread link
thread linkthread link Re:Lookup Affiliate Referral with API, Help Needed
marcpsummers 2009/11/02 11:08
    thread link
thread linkthread linkthread link Re:Lookup Affiliate Referral with API, Help Needed
techportal 2009/11/02 11:38
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop