Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, June 19, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Passing ContactID to DoInvoke "Function", "Insert:Note"
Michael Rogers
Posts: 70
 
Passing ContactID to DoInvoke "Function", "Insert:Note"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Oct 06 4:17 PM
fiogf49gjkf0d
Trying to call this from a datagrid without forcing my users to select a contact from a lookup. Any ideas on this one?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Passing ContactID to DoInvoke "Function", "Insert:Note"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Oct 06 5:26 PM
fiogf49gjkf0d
Don't use DoInvoke, instead use CreateCompletedActivity. This allows you to pass in a contactid, and other values, to populate the "Insert Note" screen.

Application.BasicFunctions.CreateCompletedActivity "Note", MYCONTACTID, "", "Notes subject", "Creating a note", Application.BasicFunctions.CurrentUserID


Params are:
Type (Phone call, Meeting, To-Do, Note)
ContactID
OpportunityID
Regarding
Notes
UserID

Any of these values can be blank. One thing to point out is that this is broken in v7. Regardless of whether you pass in a contactid or not, it will still pop the contact lookup (although you can fix this yourself since this is now customizable in architect to make it only pop the lookup if no contactid was passed in). SLX says it is functioning as designed, so they wouldn't create a defect for it, but it was logged as a feature request
[Reply][Quote]
Ian Fitzpatrick
Posts: 146
 
Re: Passing ContactID to DoInvoke "Function", "Insert:Note"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jul 07 5:01 PM
Is there a way to change the Form that pops up after you Create a completed Activity in v7.0? I have been searching but I can't seem to find it in Architect.

Thanks.
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Passing ContactID to DoInvoke "Function", "Insert:Note"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jul 07 8:37 PM
That whole area is basically broken in 7.0/7.0.1.

However, it's "fixed" in (the unreleased) 7.2

--
rjl
[Reply][Quote]
Lawrence Reid
Posts: 63
 
Re: Passing ContactID to DoInvoke "Function", "Insert:Note"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Jul 07 7:48 AM
This is the System:History Detail View. There is code in the form show event to determine if it is a new activity. If so, it checks the user options to see if prompts are requested for the contact, regarding or category. These can be skipped. Just determine additional conditions of when not to show the prompts.

Sub AXFormShow(Sender)
Dim objOptions

If Activity.Key = "" And Activity.BasedOn = "" Then
If Activity.Type = atNote Then
Set objOptions = New ActivityUserOptions
If objOptions.PromptForContact Then
lveContact.Popup
End If
If objOptions.PromptForRegarding And pklRegarding.Text = "" Then
pklRegarding.Popup
End If
If objOptions.PromptForCategory And pklCategory.Text = "" Then
pklCategory.Popup
End If
Set objOptions = Nothing
End If
End If

CheckLead
'This calls a custom script to update custom fields
Populate_CCMember_And_CCUnit
End Sub
[Reply][Quote]
Ian Fitzpatrick
Posts: 146
 
Re: Passing ContactID to DoInvoke "Function", "Insert:Note"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Jul 07 12:51 PM
Perfect! Thank you Lawrence! I would have never found that.

Any idea how to add a .PromptForStartDate to the Options Object?

Thanks again.
[Reply][Quote]
Lawrence Reid
Posts: 63
 
Re: Passing ContactID to DoInvoke "Function", "Insert:Note"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Jul 07 1:12 PM
From what I understand the options object is a non-editable system object. If I find anything on this, I will let you know.
[Reply][Quote]
Ian Fitzpatrick
Posts: 146
 
Re: Passing ContactID to DoInvoke "Function", "Insert:Note"Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Jul 07 2:53 PM
Thank you for all your help!
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/19/2025 4:47:51 PM