• Filikin
  • NEWBIE
  • 305 Points
  • Member since 2011

  • Chatter
    Feed
  • 6
    Best Answers
  • 5
    Likes Received
  • 0
    Likes Given
  • 72
    Questions
  • 106
    Replies
Hello all!

I am collecting some ideas and where I am going wrong.
My project is about a company who sells product with the help of sales people.
Whenever i create a product move, i want to trigger the creation of a delivery, and the delivery fires the creation of a feedback.
should i use the master detail relationship each time, and use the workflow triggers?
in this case i think i have to give a delivery at the creation of a product move. (experience)

how should I do it? what is your opinion?
Hi,
we are using Box.com with Salesforce classic. In the Box.com has anyone managed to hide the path and the search box?
We only want users to see the files related to the record they are looking at.
thanks
hi,
I am trying to use Named Credentials to get a list of users from Google's G-Suite.
So I created an app on the Google console and gave it a scope of https://www.googleapis.com/auth/admin.directory.user.readonly
I confirmed with Google's API explorer that both the scope and the URL I was going to make the request on were correct 
Then I created an Auth Provider and Named Credential leaving the Scope blank. But when I run this code in anonymous apex, I get an error "Insufficent Permission" returned from Google:
HttpRequest req = new HttpRequest();
req.setEndpoint('callout:Google/admin/directory/v1/users?domain=ncutraining.ie');
req.setMethod('GET');
Http http = new Http();
HTTPResponse res = http.send(req);
System.debug(res.getBody());

so I tried adding the scope to the Named Credential and the Auth Provider, but then I get  and error Missing_id_token when I try to save the Named Credential.
Has anyone got something similar working I could look at?
thanks
Hi,
I am using the sfdx force:package:version:create command to attempt to create the first version of my package.
But the source code includes a reference to npsp, so I am getting an error "No such column 'npe01__SYSTEMIsIndividual__c' on entity 'Account'"

I understand that I have to add a dependency to the npsp in my sfdx-project.json file, but can someone give me an example of what to add?
thanks
Hi,
the new lightning calendar based on an object is lovely - but does anyone know of a way to distribute it?
I have system with 10 users and a requirement for the same 58 object calendars per user.
I don't want to login as each user and create each calendar.
Is there a way to either share an object calendar, or code the creation of a calendar?
hi,
I have a group of users on the Company Communities license. They can login to both the portal (community) and the standard Salesforce UI.
I want to restrict them to only the portal.
Is there any way to do this?
thanks
Hi,
I would like to switch a user to the community portal on login.
I could ask them to go to the portal login page and click on "Employee login", but there is no guarantee they are going to do that, so I would like to force them to the portal when they login.
Has anyone any idea how to do that?
 
Hi, 
I have a record (custom object) that is owned by a partner portal user. The partner portal manager can see that record, but not the tasks linked to the record. The tasks are also linked to a contact, but the manager also has access to that contact.
Is there somethink extra that has to be done to allow subordinates tasks to be visible to managers?
Hi,
I have a lightning component that is launched from a quick action on the account record page.
The component makes a payment to Stripe using REST and then creates a payment record linked to the account.
The related list of payments (a custom object) is on the account record page.
Is there a way to update this related list to reflect the new record that has been created?
I saw something like this in the realtors sample app, but I think that used a custom component for the related list.
Refreshing the account record view would solve the problem, but seems very "unlightning" like
Hi,
I am working with an org which has the NPSP and a few other packages installed.
Using the "old" development cycle, I created a sandbox from the org, made my changes in eclipse and pushed the changes to production.
Now I want to use scratch orgs.
So I created a scratch org, used my package.xlm file from Eclipse to retrieve the config from the sandbox, converted it to the new format and attempted to push it to the scratch org.
However the config is dependent on fields that are part of the NPSP, so do I have to install all the packages that are in the sandbox manually into the scratch org before I can start development?
This seems to break the idea of a fast turnround - am I missing something?
Hi,
I hope I am missing something obvious, but how do I print a contact record in Lightning?
The standard print in Firefox only prints what is on the screen.
I found an extension for Chrome, but couldn't get it to work.
Has anyone solved this one?
  • September 08, 2017
  • Like
  • 1
Hi, I am doing my first lightning org and getting very frustrated by the speed with which config changes are appearing on the page.
For example, I added a new value to a picklist on the contact, then refreshed the contact page - no change.
On the fifth refresh, the new picklist value appear.
I am sure the problem is that Lightning is caching as much as possible to improve the user experience, but  I am wondering is there a magic developer flag to say "Don't cache anything until I am finished development"
 
  • September 01, 2017
  • Like
  • 0
Hi,
on my force.com public site, the input date format uses the US format, but the public site guest user shows the time zone as GMT and locale as English/Ireland

The page is very simple and on another org, which looks identical to me, it is fine:
<apex:page standardController="Contact"  >
<apex:form>
<apex:inputField id="Date" value="{!Contact.BirthDate}" />
</apex:form>
</apex:page>

any ideas?
Hi,
using the ui:inputRadio control, I find the difference between selected and not selected far too subtle - all that changes is the colour of the font from a light shade of blue to a darker shade.
Is there a way of changing this?
The one proviso is that I need to use ui:inputRadio - switching to a different control is not an option.
My code so far is:
<fieldset class="slds-form-element">
          <div class="slds-form-element__control">
              <div class="slds-radio_button-group">
                <aura:iteration items="{!v.statuses}" var="statusValue">
                      <span class="slds-button slds-radio_button">
                        <ui:inputRadio change="{!c.onStatusRadio}" aura:id="status" name="radio" label="{!statusValue}" labelClass="slds-radio_button__label slds-radio_faux"/>
                      </span>
                </aura:iteration>
            </div>
        </div>
    </fieldset>

 
hi,
while updating a trigger in a package using Eclipse, the trigger disappeared from the package and I got "An unexpected error has occurred. 1926442835-27139 (-435729908)"
I tried recreating the trigger in the package, but it says "Error: Trigger name is already in use or has been previously used"

I thought to open a case - but I can't since it is a development issue.
Any clues where I can go from here?
Hi,
the LDS documentation has a component called Accordion and in the developer guidelines section it gives an example https://www.lightningdesignsystem.com/components/accordion/?variant=base

It sounds like a stupid question, but is this example meant to work?
Should I be able to copy the code straight into a new componet and see the effect, or is there more code I have to put around this that is not shown?

 
Hi,
is it possible to upload files (not attachments) with the data loader?
Since Salesforce says that Notes and Attachments are being replaced by separate Notes and Files I am trying to figure out how to upload a load of files which I would previously have uploaded as attachments.

My only solution so far is to upload them as attachments and then wait for the promised Attachment to File converter.
 
Hi,
I have a Salesforce community using the customer community plus license.
When I go to manage the community, Administration, Tabs, the Documents tab is not in the list of Available Tabs.
Has anyone any idea why not?
thanks
Hi,
I am trying to get my head around what happens to permissions when I upgrade a package.
I install my package, select "Install for all users" and after the package is installed, I customise the user's profiles to give them the level I access they require.
Then I produce a new version of the package, go back to the customer's org and upgrade the package.
If I select "Install for all Users" will this overwrite the customisations I made to the user's profiles and give everyone access to everything?
If so, should I select "Install for Admins Only" when doing the upgrade?
 
Hi,
according to the documentation: "Network Access allows you to whitelist a set of IP address ranges that you trust."
If we use this, what is to stop an attacker who has learnt one of our user's passwords, spoofing our IP address to gain access to our system without a verification code?
Hi,
I have the Sharepoint files connector working, so my users can use chatter to browser files in Sharepoint.
I want them to upload files to chatter and for the file to be automatically moved into Sharepoint (at this stage I don't really care where in Sharepoint, I just want to make use of its cheaper file storage).
Does anyone have any apex code that uploads files to Sharepoint - or is there an easier way to do this?
 
  • September 14, 2016
  • Like
  • 0
Hi,
I hope I am missing something obvious, but how do I print a contact record in Lightning?
The standard print in Firefox only prints what is on the screen.
I found an extension for Chrome, but couldn't get it to work.
Has anyone solved this one?
  • September 08, 2017
  • Like
  • 1
hi,
I have an auth provider created in Salesforce to give me access to Sharepoint online, as part of the files connect setup process.
However, I am wondering if it is possible to get the access token from this in Apex, so that I can use the REST API to send files to Sharepoint without using the Files Connect UI
  • September 06, 2016
  • Like
  • 1
Hi,
I am using a flow to allow a user to edit a record.
I can display the current value of all the fields in the record except for picklists - is there any way to do this?

Also all my picklists in the flow are mandatory - do they have to be?

Hi,
we are using both Salesforce Enterprise and the Enterprise One App licenses.
If I develop a hybrid mobile app using SDK 2.1, do my users need the mobile feature license, or is that only required for the Salesforce Classic app?
thanks.

Hi,
we are using Box.com with Salesforce classic. In the Box.com has anyone managed to hide the path and the search box?
We only want users to see the files related to the record they are looking at.
thanks
hi,
I am trying to use Named Credentials to get a list of users from Google's G-Suite.
So I created an app on the Google console and gave it a scope of https://www.googleapis.com/auth/admin.directory.user.readonly
I confirmed with Google's API explorer that both the scope and the URL I was going to make the request on were correct 
Then I created an Auth Provider and Named Credential leaving the Scope blank. But when I run this code in anonymous apex, I get an error "Insufficent Permission" returned from Google:
HttpRequest req = new HttpRequest();
req.setEndpoint('callout:Google/admin/directory/v1/users?domain=ncutraining.ie');
req.setMethod('GET');
Http http = new Http();
HTTPResponse res = http.send(req);
System.debug(res.getBody());

so I tried adding the scope to the Named Credential and the Auth Provider, but then I get  and error Missing_id_token when I try to save the Named Credential.
Has anyone got something similar working I could look at?
thanks
Hi,
I am using the sfdx force:package:version:create command to attempt to create the first version of my package.
But the source code includes a reference to npsp, so I am getting an error "No such column 'npe01__SYSTEMIsIndividual__c' on entity 'Account'"

I understand that I have to add a dependency to the npsp in my sfdx-project.json file, but can someone give me an example of what to add?
thanks
Hi,

Just in case this helps somebody! It tooks quite a bit of time to track this issue down.

We've had an issue with the sfdx force:data:tree:import command failing with a MALFORMED_ID message when trying to resolve references during data imports.   It turns out the issue was realated to our namespace, which has numbers in it, which the sfdx tool didn't handle.  
 
An example is :-

plan.json
 
[
    {
        "sobject": "i42as__testParent",
        "saveRefs": true,
        "files": [
            "parent.json"
        ]
    },
    {
        "sobject": "i42as__testChild",
        "resolveRefs": true,
        "files": [
            "child.json"
        ]
    }
]

parent.json 
 
{
    "records": [
        {
            "attributes": {
                "type": "i42as__testParent__c",
                "referenceId": "parentRef1"
            },
            "i42as__Message": "Hello"
        }
    ]
}

child.json
{
    "records": [{
        "attributes": {
            "type": "i42as__testChild__c",
            "referenceId": "testChildRef1"
        },
        "i42as__parent__c": "@parentRef1"
    }]
}

When run with the following command, this returns an error.  
 
sfdx  force:data:tree:import --plan plan.json

STATUSCODE    MESSAGE                                                                    FIELDS
────────────  ─────────────────────────────────────────────────────────────────────────  ───────────────────────────
MALFORMED_ID  Object: id value of incorrect type: @parentRef1  i42as__parent__c
=== testChildRef1 [1]

In turns out this was an error in the salesforce-alm library, the regex used to look for the @parentRef1 replacement was not expecting a number in the namespace.  I've managed to work around the issue by changing the file .local/share/sfdx/client/node_modules/salesforce-alm/dist/lib/data/dataImportApi.js as follows;-
 
const jsonRefRegex = /[.]*["|'][A-Z_]*["|'][ ]*:[ ]*["|']@([A-Z0-9_]*)["|'][.]*/igm;
const jsonRefRegex = /[.]*["|'][0-9A-Z_]*["|'][ ]*:[ ]*["|']@([A-Z0-9_]*)["|'][.]*/igm;



 
Hi,
I have a lightning component that is launched from a quick action on the account record page.
The component makes a payment to Stripe using REST and then creates a payment record linked to the account.
The related list of payments (a custom object) is on the account record page.
Is there a way to update this related list to reflect the new record that has been created?
I saw something like this in the realtors sample app, but I think that used a custom component for the related list.
Refreshing the account record view would solve the problem, but seems very "unlightning" like
Hi,
I am working with an org which has the NPSP and a few other packages installed.
Using the "old" development cycle, I created a sandbox from the org, made my changes in eclipse and pushed the changes to production.
Now I want to use scratch orgs.
So I created a scratch org, used my package.xlm file from Eclipse to retrieve the config from the sandbox, converted it to the new format and attempted to push it to the scratch org.
However the config is dependent on fields that are part of the NPSP, so do I have to install all the packages that are in the sandbox manually into the scratch org before I can start development?
This seems to break the idea of a fast turnround - am I missing something?
Hi,
I hope I am missing something obvious, but how do I print a contact record in Lightning?
The standard print in Firefox only prints what is on the screen.
I found an extension for Chrome, but couldn't get it to work.
Has anyone solved this one?
  • September 08, 2017
  • Like
  • 1
Hi, I am doing my first lightning org and getting very frustrated by the speed with which config changes are appearing on the page.
For example, I added a new value to a picklist on the contact, then refreshed the contact page - no change.
On the fifth refresh, the new picklist value appear.
I am sure the problem is that Lightning is caching as much as possible to improve the user experience, but  I am wondering is there a magic developer flag to say "Don't cache anything until I am finished development"
 
  • September 01, 2017
  • Like
  • 0
Hi,
on my force.com public site, the input date format uses the US format, but the public site guest user shows the time zone as GMT and locale as English/Ireland

The page is very simple and on another org, which looks identical to me, it is fine:
<apex:page standardController="Contact"  >
<apex:form>
<apex:inputField id="Date" value="{!Contact.BirthDate}" />
</apex:form>
</apex:page>

any ideas?
Hi,
I have a load file having around 800000 records trying to UPSERT  through data loader for one of object Invoice__c .Load stopped in between at the record count 600000.I want to load only remaing records but how can I identify the records loaded in the loadfile .
Does the dataloader loads the records any particular order ?Does it sorts the records based on any key ?

Please let me know if any one experienced this before.

Thanks,
Hi,
using the ui:inputRadio control, I find the difference between selected and not selected far too subtle - all that changes is the colour of the font from a light shade of blue to a darker shade.
Is there a way of changing this?
The one proviso is that I need to use ui:inputRadio - switching to a different control is not an option.
My code so far is:
<fieldset class="slds-form-element">
          <div class="slds-form-element__control">
              <div class="slds-radio_button-group">
                <aura:iteration items="{!v.statuses}" var="statusValue">
                      <span class="slds-button slds-radio_button">
                        <ui:inputRadio change="{!c.onStatusRadio}" aura:id="status" name="radio" label="{!statusValue}" labelClass="slds-radio_button__label slds-radio_faux"/>
                      </span>
                </aura:iteration>
            </div>
        </div>
    </fieldset>

 
hi,
while updating a trigger in a package using Eclipse, the trigger disappeared from the package and I got "An unexpected error has occurred. 1926442835-27139 (-435729908)"
I tried recreating the trigger in the package, but it says "Error: Trigger name is already in use or has been previously used"

I thought to open a case - but I can't since it is a development issue.
Any clues where I can go from here?
Hi,
the LDS documentation has a component called Accordion and in the developer guidelines section it gives an example https://www.lightningdesignsystem.com/components/accordion/?variant=base

It sounds like a stupid question, but is this example meant to work?
Should I be able to copy the code straight into a new componet and see the effect, or is there more code I have to put around this that is not shown?

 

I'm working on connecting our salesforce app to talk to our google pubsub services. Now, I have the auth token part of it working, by presenting JWT as described here - https://developers.google.com/identity/protocols/OAuth2ServiceAccount . This gives us the auth token that I then present to my rest calls to publish messages.

Now, I'm starting to wonder if anyone has a better way of connecting to Google APIs. In an ideal world, I would attach a cert defined in named credential to all of my callouts to Google APIs, but I haven't found any examples for this and I'm having a hard time articulating why this doesn't work or isn't supported out of the box.

I'm an oauth noob here. Have self signed certs on rest requests been deemed inherently insecure? Is there a better/easier way to connect to google services?

  • November 14, 2016
  • Like
  • 0

Hi,

I know similar questions on this have been asked before, but jus tin case someone has an answer.

I am making SOAP callouts from asynchrous code and it was all working fine until the certs expired on the server I was calling.

 

the certs were replaced, but now I get the following error:

Failed to loginSystem.CalloutException: IO Exception: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

 

Is it possible that Salesforce is caching the cert somewhere?

 

I tried deleting the remote site in the security controls and recreating it, but it made no difference.

 

The guy in charge of the server I am calling has come back with this:

I checked the following link: http://wiki.developerforce.com/index.php/Outbound_Messaging_SSL_CA_Certificates

Our certificate was signed by the following root certificate: COMODO High-Assurance Secure Server CA

Which in turn was signed by AddTrust External CA Root

This I can find in the list: http://wiki.developerforce.com/index.php/Outbound_Messaging_SSL_CA_Certificates#addtrustexternalca

 

The values seem to match, so the certificate should be recognised fine.