• @LaceySnr - Matt Lacey
  • NEWBIE
  • 19 Points
  • Member since 2013
  • Co-Founder
  • S. P. Keasey Trading Co. & Proximity Insight


Badges

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 28
    Replies

How do we go about delivering code for the project for review? I assume we're submitting a zip or similar for any mobile code and then just some org creds for SFDC parts? 

I'm pretty sure I know the answer to this, and I'm pretty sure it's "no", but is there any way to check if a user is licensed to use your AppExchange Managed Package apart from using UserInfo.isCurrentUserLicensed()?I can't use that method as this code is not being run by the actual user.

 

I've got some ideas for tracking who is and isn't licencesed but all the techniques are pretty hacky and could easily produce false positives/negatives when a user's licensed status changes.

 

 

Trying ot help a friend of mine, Here is the job description, may be he should edit it to make it more generic as it looks like he is looking for a unicorn  ?

Jay

***

 
Lead Force.Com Developer

About the Role

You will be the primary technology person in charge of leading a team of on site and off shore salesforce developers in developing a high transaction REST based APEX application. (This is not a Salesforce CRM project or a project management role, rather hands on APEX work utilizing Force.com platform)

Job Tasks

Tech lead for about 40 APEX developers based at various cities around the globe.
Teach APEX Programing to non SF developers and be a mentor to Jr developers
Develop coding standards and conduct code reviews
Select and manage software development tools for source code control, deployment, testing, bug tracking and change management.

Minimum Qualifications

Experience as a technical lead to a globally distributed development team
10+ years of Software engineering experience in Java or C#.
Excellent knowledge of APEX and APEX class libraries.
Ability to create APEX training material and train non SF developers.
Ability to conduct technical interviews of potential salesforce developer hires.
Experience with developing highly scalable REST API’s solutions in APEX
Good understanding of Salesforce Metadata and Tooling API.
Experience with SF security,  governor limits etc.

Preferred Qualification

Hands on experience with API Testing (Compliance, Performance, Load and Security)
Experience with large (25M+ records) datasets in salesforce.
Experience with tools to make SF development more productive (IDE’s, code generators, deployment)
Experience with parsing APEX and XML using Java or C#.
DEV401 or DEV501 certification is a plus   
Good relationship with the local salesforce developers and an ability to recruit 
 
I am trying to send $http request to salesforce for submitting a ticket.
I enabled in security setting cors while adding my site to the withlist.
The probelm is that i am still getting the famous error:
XMLHttpRequest cannot load https://www.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://mystie.com' is therefore not allowed access.

Code:
$http({
                method: 'POST',
                url: 'https://www.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8',
                headers: { 'Content-Type': 'application/json' },
                data: param2
            }).
Thanks in advance for your help.
Dan
I am using Tooling API to create an Apex class, I noticed that if the class body has a reference to any object (standard or custom), it throws a compilation error.

For example, if the class body has:
Account a;

the error is: no access to account. 

How do I get around this?
Hi

How are you doing!
I'm an Oracle SOA Consultant with a solid experience on all of the SOA stack viz. SOA, BPM, OSB, Security. Earlier to that, I was in Java for abt 3 yrs.
I'm looking forward to learn Salesforce and shift my career into this for good.

I want to know what is the pre-requisite for learning/getting into Salesforce? Should I have a CRM experience? Or should I have command on any specific technologies? Or what should be the approach to get into this field.
I'm very focussed on spending time and learning this new technology, but I'm so new to this that I'm confused with terms like Salesforce1, force.com, etc.
I can spend some time to know these terms, but it would be great if you guys who are already familiar with it, or who have shifted your technology to salesforce would answer so that it would be more apt for me.

Could you please give me some links to basically understand the terms involved in this field so that once I get familiar, I can decide what to learn and how.
Appreciate your response.

Regards
RaviKiran
I am looking for the best way to make a complete clone of a salesforce instance including all fields, objects, scripts, formulae and layouts but MINUS any data or user accounts. The NEW instance would need to be totally separate from the original and needs to retain the ability to still be further customized if necessary. I have already found some clues by reading material at the following links:

https://success.salesforce.com/answers?id=90630000000hPT7AAM

http://salesforce.stackexchange.com/questions/47/copying-metadata-and-code-from-one-production-org-to-another

http://blog.jeffdouglas.com/2008/07/15/migrating-salesforcecom-configurations-with-the-metadata-api-forcecom-migration-tool/

But I still need more details.  Is a specific minimum edition of salesforce required? Is there a way to also retain all the plugins that were in the original so that they are also in the new instance?

The use case here is the following: We have spent an enormous amount of time extensively customizing salesforce to get it to record and do exactly what we want for our specific business. Now we need to deploy salesforce to a totally new business so that the second salesforce instance does exactly the same thing as the first, but the new business cannot be allowed to see any of the customer data in the original salesforce instance (or vice versa).  Any ideas?
I'm a beginner when it comes to Javascript. We have an existing custom button that creates a new task on the Contact object. Here's the existing code:

{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")}

var myTask = new sforce.SObject("Task");
myTask.WhoId = "{!Contact.Id}";
myTask.Subject = "Follow Up";
sforce.connection.create([myTask]);
window.location.reload();

However, our requirements have changed. We now need the button to work ONLY when all tasks on the Contact are CLOSED. And instead of creating the task right away, the button should take the user to the task edit page to be able to enter comments. The user will save the task manually.

How do I use javascript to make sure that all tasks are closed?
How do I redirect the user to the task edit page?

Any tips and/or sample code I could work with would be of great help
Hello,

We are in the process of adding additional information to each of our festival 121 Fringe Ticketing pages, however, the text is being pasted into a different font than the original information. Is there a way to change this? A bit of code I can use to adjust this? We tried using HTML, but it did not work. An example of this currently exists here: https://pafringe.secure.force.com/ticket/#details_a0Si0000004YFAzEAO

Thanks for your time.

Laura Lomascolo
Festival Program Intern
laura@fringearts.com

FringeArts
140 N Columbus Blvd (at Race St)
Philadelphia, PA 19106
Hello, 

Awhile ago, I followed instructed posted on this forum to put a dashboard within an Iframe. The post explained how to add some Jquery code to get the hyperlinks within the dashboard reports to work properly. This was great until the Summer 14 release when we noticed that users could no longer drill down to the dashboard report and click a hyperlink to a specific Opportunity. 

Does anyone know why this code would no longer work? 

<apex:page >

<script src="http://code.jquery.com/jquery-1.9.1.min.js">
jQuery( function ($) {

     $('#iframeID').load( function() {             
         var $frameDoc = this.contentWindow.document,
             urlMatch = /srcUp\(%27(.*)%27\)/;

         $('a[href*="srcUp"]', $frameDoc).each( function () {
             this.href = decodeURIComponent(this.href.match(urlMatch)[1]);
         });
     });

});
</script>

<!-- the rest of your page goes here -->

<iframe id="iframeID" src="/01ZC0000001Okk7?isdtp=vw" scrolling="true" height="100%" width="100%"/>

</apex:page>
Hello All-

Today when we send email's through salesforce using standard salesforce "Send Email" button on contact along with any attachments there is no way to capture the attachment that has been sent.
I have a requirement where client would like to have a additional check box on send email screen and when checked, the attachment should be saved as an attachment to the contact's attachment related list.

As per my understanding I have to code the complete send email screen using visualforce and I wanted to know if anyone has any ideas around my requirement and if possible any VF code or any link which is similar to standard send email screen for me to start.

Any help on this would be really appreciated.

Thanks!
Hi,

I have a requirenment to update the defualt picklist value of Event, which is the standard field, at the time of Add or Edit the event. How can I update the field by using Home page compnent. Right now, If I try to access any field in JavaScript by using documentElementById(); its return null value.

I have a managed VF page with a custom section whose content is dependent on the client. I want to be able to configure this particular section in each client org.

Any ideas as to what options I have?

Thanks.
Hello everyone

I have a requirement to build a simple page which caches salesforce data  when i go offline, and auto sync when i come online for moblie site. Can we do it with simple html 5 and javascript? what sort of javascript we will use? i dont want to use mobile sdk. is there any solution regarding this. i have build a page wgich can save data offline usiing offline.js but can not sync it back with salesforce.
Also can we use salesforce logged in session offline?

Regards
Shailesh Gusain
So I'm trying to move a customer portal over to a community.  I have one visualforce page that generates a error "Error: Error Occured while loading a Visualforce page"

When I turn on the debug logs there's not much information in there but this code:

17.0 APEX_CODE,FINEST;APEX_PROFILING,FINEST;CALLOUT,FINEST;DB,FINEST;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,FINER;WORKFLOW,FINER
21:39:36.115 (115519618)|EXECUTION_STARTED
21:39:36.115 (115554881)|CODE_UNIT_STARTED|[EXTERNAL]|06640000000TNPF|VF: /apex/Exception
21:39:36.119 (119492891)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{AND(ISPICKVAL($User.UserType,'Guest'), $Site.LoginEnabled)}
21:39:36.119 (119575647)|VF_EVALUATE_FORMULA_END
21:39:36.119 (119590598)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{NOT(ISPICKVAL($User.UserType,'Guest'))}
21:39:36.119 (119615591)|VF_EVALUATE_FORMULA_END
21:39:36.120 (120803221)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{$Site.Prefix}/img/sites/force_logo.png
21:39:36.120 (120848355)|VF_EVALUATE_FORMULA_END
21:39:36.120 (120935584)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{AND(ISPICKVAL($User.UserType,'Guest'), $Site.LoginEnabled)}
21:39:36.120 (120965057)|VF_EVALUATE_FORMULA_END
21:39:36.120 (120974637)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{NOT(ISPICKVAL($User.UserType,'Guest'))}
21:39:36.120 (120990629)|VF_EVALUATE_FORMULA_END
21:39:36.121 (121001242)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{NOT(ISPICKVAL($User.UserType,'Guest'))}
21:39:36.121 (121017687)|VF_EVALUATE_FORMULA_END
21:39:36.121 (121025388)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{NOT(ISPICKVAL($User.UserType,'Guest'))}
21:39:36.121 (121039876)|VF_EVALUATE_FORMULA_END
21:39:36.121 (121056110)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{$Site.Prefix}/secur/logout.jsp
21:39:36.121 (121083416)|VF_EVALUATE_FORMULA_END
21:39:36.121 (121107628)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{NOT(ISPICKVAL($User.UserType,'Guest'))}
21:39:36.121 (121130764)|VF_EVALUATE_FORMULA_END
21:39:36.121 (121200072)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{NOT(ISPICKVAL($User.UserType,'Guest'))}
21:39:36.121 (121224299)|VF_EVALUATE_FORMULA_END
21:39:36.121 (121233994)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{NOT(ISPICKVAL($User.UserType,'Guest'))}
21:39:36.121 (121248919)|VF_EVALUATE_FORMULA_END
21:39:36.121 (121305749)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{NOT(ISPICKVAL($User.UserType,'Guest'))}
21:39:36.121 (121328132)|VF_EVALUATE_FORMULA_END
21:39:36.121 (121339221)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{NOT(ISPICKVAL($User.UserType,'Guest'))}
21:39:36.121 (121358486)|VF_EVALUATE_FORMULA_END
21:39:36.121 (121580720)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{URLFOR($Resource.SiteSamples, 'img/clock.png')}
21:39:36.121 (121635760)|VF_EVALUATE_FORMULA_END
21:39:36.121 (121684499)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{URLFOR($Resource.SiteSamples, 'img/warning.gif')}
21:39:36.121 (121729667)|VF_EVALUATE_FORMULA_END
21:39:36.121 (121943270)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF| #{$Label.site.get_in_touch}
21:39:36.121 (121990677)|VF_EVALUATE_FORMULA_END
21:39:36.122 (122021392)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|mailto:#{$Site.AdminEmailAddress}
21:39:36.129 (129846299)|VF_EVALUATE_FORMULA_END
21:39:36.129 (129915080)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|mailto:#{$Site.AdminEmailAddress}
21:39:36.136 (136469626)|VF_EVALUATE_FORMULA_END
21:39:36.136 (136797945)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{URLFOR($Resource.SiteSamples, 'img/poweredby.png')}
21:39:36.136 (136857156)|VF_EVALUATE_FORMULA_END
21:39:36.137 (137316766)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{$Site.Prefix}/img/sites/poweredby.png
21:39:36.137 (137353875)|VF_EVALUATE_FORMULA_END
21:39:36.138 (138695047)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{$Site.Prefix}/site/SiteStyles.css
21:39:36.138 (138733274)|VF_EVALUATE_FORMULA_END
21:39:36.138 (138777708)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{AND(ISPICKVAL($User.UserType,'Guest'), $Site.LoginEnabled)}
21:39:36.138 (138805219)|VF_EVALUATE_FORMULA_END
21:39:36.138 (138822387)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{NOT(ISPICKVAL($User.UserType,'Guest'))}
21:39:36.138 (138841045)|VF_EVALUATE_FORMULA_END
21:39:36.139 (139151847)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{$Site.Prefix}/site/SiteStyles.css
21:39:36.139 (139182654)|VF_EVALUATE_FORMULA_END
21:39:36.139 (139221824)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{AND(ISPICKVAL($User.UserType,'Guest'), $Site.LoginEnabled)}
21:39:36.139 (139247962)|VF_EVALUATE_FORMULA_END
21:39:36.139 (139258523)|VF_EVALUATE_FORMULA_BEGIN|06640000000TNPF|#{NOT(ISPICKVAL($User.UserType,'Guest'))}
21:39:36.139 (139274861)|VF_EVALUATE_FORMULA_END
21:39:36.242 (141915300)|CUMULATIVE_LIMIT_USAGE
21:39:36.242|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 0 out of 100
  Number of query rows: 0 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 150
  Number of DML rows: 0 out of 10000
  Maximum CPU time: 0 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 10
  Number of Email Invocations: 0 out of 10
  Number of future calls: 0 out of 10
  Number of Mobile Apex push calls: 0 out of 10

21:39:36.242|TOTAL_EMAIL_RECIPIENTS_QUEUED|0
21:39:36.242|CUMULATIVE_LIMIT_USAGE_END

21:39:36.246|CUMULATIVE_PROFILING_BEGIN
21:39:36.246|CUMULATIVE_PROFILING|No profiling information for SOQL operations
21:39:36.246|CUMULATIVE_PROFILING|No profiling information for SOSL operations
21:39:36.246|CUMULATIVE_PROFILING|No profiling information for DML operations
21:39:36.246|CUMULATIVE_PROFILING|No profiling information for method invocations
21:39:36.246|CUMULATIVE_PROFILING_END
21:39:36.141 (141957077)|CODE_UNIT_FINISHED|VF: /apex/Exception
21:39:36.144 (144030919)|EXECUTION_FINISHED

I'm lost.  
I ran across something interesting today and was wondering if anyone has seen similar behavior.

For a current project I have some custom settings that is used to set a configured unit price (hourly cost) on a provided service.  I also have a custom Request object and a custom Request Item object. Each Request is made of up one or more Request Items that may incur multiple costs based on work performed. These items are rolled up to the parent and then a trigger is used to calculate the cost of services rendered and from that an invoice is generated.

The trigger retrieves these base costs from the custom settings. The kicker here is that the custom settings has those field types set to Currency.  When I retrieve them and subusequently use them in a mathematical equation such as: Total_Admin_Hours__c * settings.Admin_Hourly_Cost__c, I get an exception stating that the arguments are illegal.

I verified that it was indeed the settings that it was choking on by hard-coding an arbitrary decimal value and it worked. After many head-scratches, I finally changed the custom settings field types to Number instead and everything worked as expected.  

Is there something going on inside the big black box that I'm not understanding fully or did I find some sort of "bug/feature?"

Incidentally, I wrote a unit test to verify that indeed it didn't like Currency. Something like:
@isTest static void test_decimal_multiplication() {
     RequestSettings__c settings = TestUtility.createSettings(null); //nothing to see here ;)
     Decimal total = 1 * settings.Admin_Cost__c; //Admin_Cost__c is set to 1.00 in custom settings
     System.assertEquals(1.00, total); <---- this actually passes if I remember correctly

--BUT--

  RequestSettings__c retrievedSettings = RequestSettings__c.getInstance();
  System.assertNotEquals(null, retrievedSettings.Admin_Cost__c);
  System.assertEquals(1.00, retrievedSettings.Admin_Cost__c);
  total = 1 * retrievedSettings.Admin_Cost__c;
  System.assertEquals(1.00, total); <--- fails if field type is Currency, passes when Number
}


Thougths? I'm not ruling out the possibility that I mucked with something else and magically it worked, but it definitely wasn't liking the CURRENCY setting...I will probably try to reproduce this in a dev org somewhere just to clear my head, but was hoping maybe someone had a nugget for me as to why it would fail if Currency is supposed to be a Decimal anyway...
Its is possible to copy/paste charts from a particular user account to a visualforce email template dynamically? I am trying to see if there is an internal method to can you use something like google charts, etc. Any direction on where to start and look into this more would be appreciated. Thanks
I created a custom object in my org and created custom lookup fields for account and contact so they would show up in the respective related list. When i create a new record for my custom object via the related list in either account or contact it does not pre populate the lookup field. The users have to click the lookup magnifying glass and select the account or contact themselves. How do I fix this?
Hello ...

I have a JS function to get the value of an outputText and present in selectOption.

But is not working.
Help me!

Thank you!

var animals = document.getElementById("{!$Component.theform.block01.minuteOP}");
    var animalsToFind = document.getElementById("{!$Component.theform.block01.minuteIP}");

    var len = animals.options.length;
    for(i = 0; i < len; i++)
    {

      if (animals.options[i].innerHTML == animalsToFind.value)
      {
         animals.selectedIndex = i;
         break;
      }     
    }

}

..........................

<apex:selectList size="1" value="{!minute}" id="minuteIP">
                 <apex:selectOption itemValue="00" itemLabel="00"/>
                 <apex:selectOption itemValue="10" itemLabel="10"/>
                 <apex:selectOption itemValue="20" itemLabel="20"/>
                 <apex:selectOption itemValue="30" itemLabel="30" />
                 <apex:selectOption itemValue="40" itemLabel="40"/>
                 <apex:selectOption itemValue="50" itemLabel="50"/>
    </apex:selectList>
    
    <apex:outputText value="{!$CurrentPage.parameters.minutePG2}" id="minuteOP" /><br />