• Anil Ingle
  • NEWBIE
  • 30 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 30
    Questions
  • 6
    Replies
Hello All,

I am working in Lightning Experience. On button click we creating opportinity with passing accountId using sforce.one.createRecord.
Salesforce redirect to opportunity but doesn't carry Account Name(AccountId).

Please check the following Code.

<script>
    function MyApp() {
        this.createOpportunity = function() {
            var custAccountId = '{!accountId}';
            sforce.one.createRecord("Opportunity", null, "defaultFieldValues:{ 'AccountId' : '"+custAccountId+"'}" );
        };
    } 

    var app = new MyApp();

    function btnCreateOppt() {
        app.createOpportunity();
    }
</script>

...
...
...

<div style="display:{!if((rfqDetail.Opportunity__c == ''),"normal","none")};">
<apex:commandButton action="{!ViewOpportunity}" value="Create" oncomplete="btnCreateOppt();" reRender="{!if((displayErrorPopUp), 'errorPopup','redirectOppt')}">
</apex:commandButton>
</div>

Please let me know, if any thing mistake
Hello All,
Our app is working on standard classic as well as lightning experience. We are passing query string value account Id to opportunity.
In Standard classic it is working properly, account name is display proper. But in lightning experience account name is blank.
Let me know, User-added image
How to pass account Id using query string in Lightning Experience?


Thanks in Advance.
Hello All,

We have pass the security review of our Phase I app and deployed on App Exchange.
We have got some code errors. We fixed these errors. We have created new package for hot fixes.

My question is,
Is there is need to pass security review again?
If yes, Is there is need to pay security review fee again.
If no, How we deploy new package on App Exchange?

Thanks in Advance!!!
[
   {
      "currentPage":"1",
      "totalPages":"37",
      "showingResults":"1-10 of 776"
   },
   {
      "rfqs":[
         {
            "opened":"04/17/2017",
            "clientId":"5004",
            "agentId":"724",
            "serialNumber":"4664641342",
            "opportunityId":"",
            "locReqs":[
               {
                  "1":{
                     "locReqId":"123456",
                     "product_type":"Internet",
                     "access_type":"20M FastE",
                     "SingleLineAddress1":"Street2, CA 92373",
                     "SingleLineAddress2":"",
                     "Term":"12"
                  },
                  "2":{
                     "locReqId":"123489",
                     "product_type":"Internet",
                     "access_type":"20M FastE",
                     "SingleLineAddress1":"Street3, CA 92373",
                     "SingleLineAddress2":"",
                     "Term":"12"
                  }
               }
            ]
         },
         {
            "opened":"04/17/2017",
            "clientId":"5005",
            "agentId":"725",
            "serialNumber":"4664641341",
            "opportunityId":"",
            "locReqs":[
               {
                  "1":{
                     "locReqId":"123412",
                     "product_type":"Internet",
                     "access_type":"20M FastE",
                     "SingleLineAddress1":"Street1, CA 92373",
                     "SingleLineAddress2":"",
                     "Term":"12"
                  }
               }
            ]
         }
      ]
   }
]
Hello All,

We want to test our apex and visualforce page code using code scanner. Code scanner test only 6000 line of code, but my application have more than 8000 line of code.

How can we check/test the code and coding standards of apex and Visualforce page?

Please let me know any other tool or opensource which can be used for apex code test.

Thanks an advance!!!
 
Hello All,

We have created custom view page in visualforce. When we run visualforce page in Standard classic, it's display as per the acceptation. But this visaulforce page run in lightning experience,
 it is not display well format.
Please let me know, How do we run or use visualforce page in both Standard Classic and Lightning Experience?

Visualforce Page code

<apex:pageBlock >
        <apex:form id="theForm">
            <div align ='Center'>
                <apex:commandButton action="{!CreateOpportunity}" value="Create New Opportunity"/>
                <br/><br/>
            </div>
            <apex:pageBlockTable value="{!accountPagination}" var="c">
                <apex:column value="{!c.Opened__c}"/>
                <apex:column value="{!c.Company_Name__c}"/>
                <apex:column value="{!c.Agent__c}"/>
                <apex:column value="{!c.Custom_Num__c}"/>
                <apex:column value="{!c.Product_Type__c}"/>
                <apex:column value="{!c.Quantity_of_Addresses__c}"/>
                <apex:column value="{!c.Status__c}"/>
                <apex:column headerValue="Opportunity">
                    <div style="display:{!if((c.Opportunity__c == ''),"none","normal")};">
                        <apex:outputLink value="{!$Site.BaseUrl}/{!c.Opportunity__c}" >{!c.Opportunity__r.Name}</apex:outputLink>
                    </div>
                    <div style="display:{!if((c.Opportunity__c == ''),"normal","none")};">
                        <apex:commandButton title="Create" action="{!ViewOpportunity}" value="Create" reRender="all">
                            <apex:param name="Account" value="{!c.Company_Name__c}" assignTo="{!AccountId}"/>
                            <apex:param name="Custom" value="{!c.Cumstom_Num__c}" assignTo="{!RfqNumber}"/>
                        </apex:commandButton>
                    </div>
                </apex:column>
            </apex:pageBlockTable>
        </apex:form>
    </apex:pageBlock>

Thanks in Advance!!


User-added image
Hello All,

We have created custom tab called as "RFQ Manager". In this tab Add/Edit the data.
In the view page of "RFQ Manager", we want to show custom or standard "Create Opportunity" button and custom or standard "Hyperlink text" for opportunity in one single column.
For more detail please check the attachment.

Let me know, How to display button and hyperlink on single column of view page?

User-added image

Thanks in Advance
Hello All,

Our client wants to create two different users 1) Standard User 2) Premium User.
Standard User have $15 price and Premium User have $20 price.

How we use License Management App(LMA) and Checkout Management App(CMA) for differentiate these two user type?
and also wants to know, How should the application show Premium user login into App?

Thanks in Advance
Hello All,

We have created one app. Now our organization wants, sell our app in two different variant premium user and standard user on app exchange.
We want to advertise this on Appexhange for our app listing
Can we dispay it as two app in the appexchange?

Thanks in Advance
Hello All,

Our app containing two different users.
1) Standard User
2) Premium User
When premium user login to salesforce, we want to display different app logo and different logo for standard user using license management app.

Please let me know, How can I change app logo for different users, when they login in to salesforce.

Thanks in Advance
Hello All,

Our organization has completed phase I code and we are ready for security review. After security review completion, Organization planning first 30 days free "app" to customer. After 30 days customer should paid the app. Also organization planning add discount coupon.

My question is, While passing app to security review, which option should be choose in Pricing tab "Free" or "Paid"?
How to create discount coupon and pass to app exchange users?

Thanks in Advance
Hello All,

I have run the chimera test report for the third part API. It given me the 1 high and 47 low issues.
Now I have fixed the high issue, but 47 low issues are remaining. We are going to send application for the security review.

My question is that, Can salesforce fails the security review due to those low issues of chimera?

Thanks an Advance!!!
Hello All,

Our organization completed the phase I and passing to security reivew. We want to create new patch Organization but we are unable to see "Patch Organization" tab.

Let me know when the "Patch Organization" tab display and I also wants to know
What is the process for creation Patch development organization and how would we develop code onit.

Thanks in Advance

 
Hello All,

Our organization is completed phase I code and we are ready for security review. Now our orgainzation developer working on phase II code.
Our orgainzation wants to start Phase II code on different developer org. This org should be content all the code or changes done for phase I.

Let me know, How to create different developer org?

Thanks in Advance
Hi All

I have created a managed package from Developer Org for Beta testing. This package is working fine on the Partner Enterprice Edition. Now, I want to test same package on Partner Professional to check if package works fine there or not.

When I try to install, I am getting following exception.

This app can't be installed.
There are problems that prevent this package from being installed.
Accounts Missing Organization Feature: Account.Sharing


Here is the screen shot of it.

User-added imageMy question is that, how to resolve this error to support Partner Professional Edition.

Thank 
you
Hello All,

Our organization is completed phase I code and we are ready for security review. Now our orgainzation developer working on phase II code.

My concern is, if security review fails phase I and retrun back with some issues. We will solve issue and send to send back to security reivew but we don't to send the changes done for phase II.

Let me know, how we can prevent phase II changes after security review issue fixes.

Thanks in Advance
Hello All,

I have run the force.com code scanner on Apex class and Visualforce pages. The scanner reports some issues. We have solved most of them.
Some "Apex Code Quality" issues are unresolvable so we are want create one "False positive document".

Please let me know, anyone have sample False Positive document.

Thanks in Advance
Hi All

Suppose I developed third party integration using SFDC API. The current version of API is 38. I come back after two year and try to update some code of thrid party library code which is using SFDC API. At the time of development, it was using 38 now the version has been changed supposed 48.
Is there any way to get the WSDL of the SFDC API of the specific version. Here I want to get the wsdl of 38 on Production as well as Sandbox.

My production is using 38 but Sandbox is using 48 the latest.

I have developed integration using .net(C#) code.

Thank you
 
Our organizations with work multi-level hierarchies of Account.
I was wondering if anyone knows how one can create a script Or SOQL to find out the "Ultimate Parent" and store the result in a field.

Thanks
Hello All,

We have install Beta package on Enterprise Edition of Test Org.
Now our organization want to update new changes upload on Enterprise Edition. While new package installation we are getting following error message.

This app can't be upgraded.
There are problems that prevent this package from being installed. Cannot upgrade beta package You cannot upgrade a beta package, because developers can make incompatible changes to a package that has been released as a beta. To install a newer version of the package, you must first uninstall the existing version.

Please let me know, if anything we are missing.
Thanks in Advance.
Hello All,

We have created one app. Now our organization wants, sell our app in two different variant premium user and standard user on app exchange.
We want to advertise this on Appexhange for our app listing
Can we dispay it as two app in the appexchange?

Thanks in Advance
Hi All

I have created a managed package from Developer Org for Beta testing. This package is working fine on the Partner Enterprice Edition. Now, I want to test same package on Partner Professional to check if package works fine there or not.

When I try to install, I am getting following exception.

This app can't be installed.
There are problems that prevent this package from being installed.
Accounts Missing Organization Feature: Account.Sharing


Here is the screen shot of it.

User-added imageMy question is that, how to resolve this error to support Partner Professional Edition.

Thank 
you
Hello All,

I have run code scanner tool on my apex class and Visual force page. It give me FLS Create and FLS Update Issues.
I have solved these issues as per mention following URL

https://developer.salesforce.com/page/Testing_CRUD_and_FLS_Enforcement
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_perms_enforcing.htm

Again I have run code scanner tool on my apex class and Visual force page. It gives me again FLS Create and FLS Update Issue.
Let me know, if anything I miss

Following are the sample code

Boolean isContFirstNameUpsertable = Schema.sObjectType.Contact.fields.FirstName.isCreateable() &&
                                Schema.sObjectType.Contact.fields.FirstName.isUpdateable();
Boolean isContLastNameUpsertable = Schema.sObjectType.Contact.fields.LastName.isCreateable() &&
                                Schema.sObjectType.Contact.fields.LastName.isUpdateable();

List<Contact> lstContact = new List<Contact>();
if(isContFirstNameUpsertable && isContLastNameUpsertable) {
    for(AgentWrapper aw : scope) {
        Contact c = new Contact(
                                    FirstName=aw.FirstName,
                                    LastName=aw.LastName);
        lstContact.add(c);
    }
    if(lstContact.size() > 0) {
        upsert lstContact;
    }
}

Thanks in Advance
Hi All

In our Salesforce app, we redirects user to third party website from salesforce. That website has one customize email app using own SMTP server. Is it going to create any problem while send app for security review?

Thank you
Hello All

I am preparing for security review. I have created one Free App and want to send it for review. My app has third party access to API and Our Portal.

API URL :: devapi.xyz.com
Third Party Portal :: www.dev-abc.com


These are my development sites and open to access from anywhere without any VPN. Now when I will release my free app these url will change to following.

Production URL
API URL :: api.xyz.com
Third Party :: www.abc.com


Now my question is that, do I need to send package for review with development url or production url?
Last time I sent with Production url and Salesforce created test data and that affected our Production customer which created lots of problem.

I want to avoid this situcation this time while security review.

Help/Sugggestions required on this situation.

Thank you