• Bill Bell 3
  • NEWBIE
  • 10 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 2
    Replies
I doubt this is possible but I want to check.  I created an Invocablemethod and I have several Invocablevariables that are required.  I would like one Invocablevariable to be a picklist.  I tried enum but it didn't like it.  I currently define it as a String but it very tedious to make sure I type the proper value correctly.  DayType needs to be a picklist.
 
global class CreateTaskRequest {
    @InvocableVariable(required=true)
    global Id OppId;
  
    @InvocableVariable(required=true)
    global String Subject; 
    
    @InvocableVariable(required=true)
    global Id OwnerId;

    @InvocableVariable(required=true)
    global Date ReferenceDate; 
    
    @InvocableVariable(required=true)
    global Integer Days; 
    
    @InvocableVariable(required=true)
    global String DayType; 
}

 
Simple question.  On an Opportunity you can upload files.  I want to query the upload file object and check what files were uploaded.  What is the object name to query?  I've been looking for an hour and can't find it.
New to Salesforce.

I'm creating a fairly complex process in Process Builder on the Opportunity object.  When the record is saved I want to trigger and calculated some dates and do a few other checks to make sure only valid option types are entered.  Therefore, I want Process Builder to run after I do the Save trigger.  I couldn't find any documentation on this.
I am experimenting with creating a SOAP connection to Salesforce using C#.  I am using the sample code in SOAP API Developer Guide (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_quickstart_intro.htm) (PDF pages 22-28).  It says it uses "A .NET 3.0 style reference uses services like SoapClient".  Can someone explain how to setup a Service Reference to a SoapClient.  Everywhere it mentions SoapClient it is giving me an error.  I've looked for hours on how to do this.  I added a Service Reference to the WSDL file and that worked.  Thanks.


Code:
using System;
using System.ServiceModel;
using SimpleConnect.SFProd;  // WSDL XML File

namespace SimpleConnect
{
    class SimpleConnect
    {
        private static SoapClient loginClient; // for login endpoint  ****************** error
        private static SoapClient client; // for API endpoint     *********************error

Using VS Community 2015 and .net 4.5.2
 
Simple question.  On an Opportunity you can upload files.  I want to query the upload file object and check what files were uploaded.  What is the object name to query?  I've been looking for an hour and can't find it.