Filters
Question

Hi,

 

I'm getting authorization failed error when i try to login mu local instance

Can anyone help me to resolve the issue.

 

Thanks

Akshaya Gajendran

 

Like 0

Like

0 comments
Show all comments

Dear mates,

I can not find why, on my development environment, my Put oData Call return me an permission error:

403 - Forbidden: Access is denied
You do not have permission to view this directory or page using the credentials that you supplied.

The rights are the same that on our production environment and it's working fine in production.

Does anybody have an idea to solve this issue please.

Thank you,
Nicolas

Like 0

Like

2 comments

Dear Nicolas, 

 

403 error means that you are not passing all needed authentication cookies and headers in the request. Please make sure that you are calling Auth service with correct credentials and that you use all necessary cookies and headers that you receive from the response(.ASPXAUTH, BPMCSRF): 

https://academy.creatio.com/documents/technic-sdk/7-16/authentication-external-requests

https://academy.creatio.com/documents/technic-sdk/7-16/executing-odata-queries-using-fiddler

 

Best regards, 

Dennis 

Thank you Denis,

 

You are right, so i will check my functions.

 

Have a nice day

Show all comments

Hello team,

We are encountering the following exception while dealing with UserConnection.

System.ServiceModel.ServiceActivationException: Set AspNetCompatibilityEnabled true
   at Terrasoft.Web.Common.BaseService.get_UserConnection()
   at Terrasoft.Configuration.UsrDeliqDBEntry.UsrdeliqDBEntry.<saveCheckIndatabase>d__7.MoveNext()

Could you please let us know if we are missing anything?

[ServiceContract]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
public class UsrdeliqDBEntry : BaseService
{
 
 	private readonly UsrLogger usrLogger = UsrLogger.Instance;
    private Guid transRefId { get; set; }
    Guid intendedUserId= Guid.Empty;
 
 
		[OperationContract]
       [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, BodyStyle = 
 WebMessageBodyStyle.Wrapped,
       ResponseFormat = WebMessageFormat.Json)]
		public async Task&lt;string&gt; saveCheckIndatabase(string documentId, string documentType, string customerId, Guid transRefId, Guid currentUserId)
        {
         var logger = global::Common.Logging.LogManager.GetLogger("MyLogger");
 
       try
       {var intendedUserSelect= new Select(UserConnection)
                 							 .Column("Id")
                 							 .From("SysAdminUnit")
                 							 .Where("ContactId").IsEqual(Column.Parameter(currentUserId))
                                 			  as Select;
            intendedUserId = intendedUserSelect.ExecuteScalar&lt;Guid&gt;();
       }
       catch(Exception e)
       {
       	logger.Info("Exception ="+ e.ToString());
       }

 

Like 0

Like

2 comments

Hello Shivani,

 

Please see this community post https://community.creatio.com/questions/generate-and-send-printable-email-started-timer where the same problem was discussed. 

 

Best regards,

Oscar

Oscar Dylan,

Looks like my case is different. How do I get UserConnection in a source code schema which is being called from another webservice configuration?

Show all comments
Question

Hello,

I implemented the editable grid as seen here, but the detail had lookups that were filtered. When you use this detail regularly the lookups are filtered, but when you use the editable grid functionality the filter does not work.

Any help appreciated.

Thanks!

Like 0

Like

1 comments
Show all comments

What is the recommended approach for Production and Development environments, regarding Customer ID ? should we use separate CIDs or share the same CID?

What is shared between the two environments when sharing the same CID?

What is the impact when exporting/importing packages when using different CIDs ?

Like 0

Like

1 comments

Hello! 

 

Customer ID is a specific number that indicates the client in our system. Customer ID is closely linked to licenses. There is no technical difference between using separate IDs for development/production environments and sharing the same CIDs. As well, there is no technical impact on exporting/importing packages when using different CIDs. 

 

Please, let us know in case any further information is required. 

 

Best regards,
Olga. 

Show all comments